- Controlling devices from control-panes.

This commit is contained in:
Gunther Brunner
2014-03-31 16:13:12 +09:00
parent e173a4f648
commit f8a4fee2bb
12 changed files with 116 additions and 72 deletions

View File

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

View File

@@ -1,6 +1,6 @@
.widget-container.fluid-height.stf-upload(ng-controller='UploadCtrl')
.heading
i.fa
i.fa.fa-upload
span(translate) Upload
.widget-content.padded
div