mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-21 00:05:15 +02:00
Poor UI for installation progress.
This commit is contained in:
@@ -9,6 +9,24 @@ module.exports = function DeviceControlCtrl(
|
||||
$scope.control = null
|
||||
$scope.device = null
|
||||
$scope.control = null
|
||||
$scope.installation = null
|
||||
|
||||
$scope.install = function($files) {
|
||||
return $scope.control.install($files)
|
||||
.then(function(tx) {
|
||||
return tx.promise
|
||||
.progressed(function(results) {
|
||||
$scope.$apply(function() {
|
||||
$scope.installation = results[0]
|
||||
})
|
||||
})
|
||||
.then(function(results) {
|
||||
$scope.$apply(function() {
|
||||
$scope.installation = results[0]
|
||||
})
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
DeviceService.get($routeParams.serial, $scope)
|
||||
.then(function(device) {
|
||||
|
||||
Reference in New Issue
Block a user