Give UploadCtrl access to the app manifest.

This commit is contained in:
Simo Kinnunen
2014-04-03 15:47:24 +09:00
parent 46591b24c8
commit 3799b51ad3
2 changed files with 4 additions and 1 deletions

View File

@@ -7,17 +7,19 @@ module.exports = function UploadCtrl($scope, $rootScope) {
}
$rootScope.install = function ($files) {
return $rootScope.control.install($files)
.then(function (tx) {
var manifest = tx.manifest
return tx.promise
.progressed(function (result) {
$scope.$apply(function () {
result.manifest = manifest
$scope.installation = result
})
})
.then(function (result) {
$scope.$apply(function () {
result.manifest = manifest
$scope.installation = result
})
})