rework the repair view
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user