mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-19 09:53:28 +02:00
- Controlling devices from control-panes.
This commit is contained in:
@@ -1,3 +1,21 @@
|
||||
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
|
||||
})
|
||||
})
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user