rework the repair view

This commit is contained in:
Girish Ramakrishnan
2019-12-16 18:18:22 -08:00
parent d175d06b35
commit f0730f595f
4 changed files with 50 additions and 73 deletions

View File

@@ -917,6 +917,41 @@ angular.module('Application').controller('AppController', ['$scope', '$location'
if (error && error.statusCode !== 409) Client.error(error);
});
},
pauseBusy: false,
pauseAppBegin: function () {
$scope.repair.pauseBusy = true;
Client.debugApp($scope.app.id, true, function (error) {
if (error) return console.error(error);
refreshApp($scope.app.id, function () {
waitForAppTask(function (error) {
if (error) return Client.error(error);
$scope.repair.pauseBusy = false;
});
});
});
},
pauseAppDone: function () {
$scope.repair.pauseBusy = true;
Client.debugApp($scope.app.id, false, function (error) {
if (error) return console.error(error);
refreshApp($scope.app.id, function () {
waitForAppTask(function (error) {
if (error) return Client.error(error);
$scope.repair.pauseBusy = false;
});
});
});
}
};
$scope.postInstallConfirm = {