Poor UI for installation progress.

This commit is contained in:
Simo Kinnunen
2014-03-26 21:13:48 +09:00
parent 16bb47930d
commit 1880d52075
6 changed files with 98 additions and 87 deletions

View File

@@ -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) {