diff --git a/src/js/terminal.js b/src/js/terminal.js index 9a4a18b30..aaf46e9e5 100644 --- a/src/js/terminal.js +++ b/src/js/terminal.js @@ -146,32 +146,32 @@ app.controller('TerminalController', ['$scope', '$timeout', '$location', 'Client }); }; - $scope.repairApp = function () { - $('#repairAppModal').modal('show'); + $scope.pauseApp = function () { + $('#pauseAppModal').modal('show'); }; - $scope.repairAppBegin = function () { + $scope.pauseAppBegin = function () { $scope.appBusy = true; - function waitUntilInRepairState() { + function waitUntilInPauseState() { refreshApp($scope.selected.value, function (error, result) { if (error) return console.error('Failed to get app status.', error); if (result.installationState === 'installed') $scope.appBusy = false; - else setTimeout(waitUntilInRepairState, 2000); + else setTimeout(waitUntilInPauseState, 2000); }); } Client.debugApp($scope.selected.value, true, function (error) { if (error) return console.error(error); - $('#repairAppModal').modal('hide'); + $('#pauseAppModal').modal('hide'); - waitUntilInRepairState(); + waitUntilInPauseState(); }); }; - $scope.repairAppDone = function () { + $scope.pauseAppDone = function () { $scope.appBusy = true; function waitUntilInNormalState() { diff --git a/src/terminal.html b/src/terminal.html index b918e2d98..a0a1ffd48 100644 --- a/src/terminal.html +++ b/src/terminal.html @@ -101,20 +101,20 @@ - -

  - Restarting app for repair... + Restarting app in paused mode... App is being reconfigured... Waiting for app to start... App is being installed...