diff --git a/res/app/components/stf/control/control-service.js b/res/app/components/stf/control/control-service.js index 08a58d6f..bb357ca8 100644 --- a/res/app/components/stf/control/control-service.js +++ b/res/app/components/stf/control/control-service.js @@ -130,6 +130,7 @@ module.exports = function ControlServiceFactory( } } socket.emit('device.install', channel, tx.channel, params) + tx.manifest = manifest return tx }) } diff --git a/res/app/control-panes/dashboard/upload/upload-controller.js b/res/app/control-panes/dashboard/upload/upload-controller.js index e51053d7..2f6733ee 100644 --- a/res/app/control-panes/dashboard/upload/upload-controller.js +++ b/res/app/control-panes/dashboard/upload/upload-controller.js @@ -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 }) })