- Upload progress is shown.

This commit is contained in:
Gunther Brunner
2014-04-02 16:23:31 +09:00
parent 5183485a53
commit 34a1346634
3 changed files with 12 additions and 6 deletions

View File

@@ -1,9 +1,13 @@
module.exports = function UploadCtrl($scope) {
module.exports = function UploadCtrl($scope, $rootScope) {
$scope.installation = null
$scope.install = function ($files) {
return $scope.control.install($files)
$scope.clear = function () {
$scope.installation = null
}
$rootScope.install = function ($files) {
return $rootScope.control.install($files)
.then(function (tx) {
return tx.promise
.progressed(function (result) {