mirror of
https://github.com/openstf/stf
synced 2025-10-04 18:29:17 +02:00
Give UploadCtrl access to the app manifest.
This commit is contained in:
parent
46591b24c8
commit
3799b51ad3
2 changed files with 4 additions and 1 deletions
|
@ -130,6 +130,7 @@ module.exports = function ControlServiceFactory(
|
|||
}
|
||||
}
|
||||
socket.emit('device.install', channel, tx.channel, params)
|
||||
tx.manifest = manifest
|
||||
return tx
|
||||
})
|
||||
}
|
||||
|
|
|
@ -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
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue