mirror of
https://github.com/openstf/stf
synced 2025-10-06 03:50:04 +02:00
21 lines
528 B
JavaScript
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
|
|
})
|
|
})
|
|
})
|
|
}
|
|
}
|