1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-06 03:50:04 +02:00
OpenSTF/res/app/control-panes/dashboard/upload/upload-controller.js
2014-03-31 16:13:12 +09:00

21 lines
528 B
JavaScript

module.exports = function UploadCtrl($scope) {
$scope.installation = null
$scope.install = function ($files) {
return $scope.control.install($files)
.then(function (tx) {
return tx.promise
.progressed(function (result) {
$scope.$apply(function () {
$scope.installation = result
})
})
.then(function (result) {
$scope.$apply(function () {
$scope.installation = result
})
})
})
}
}