diff --git a/src/js/terminal.js b/src/js/terminal.js index 3b722d233..a4e6e4f47 100644 --- a/src/js/terminal.js +++ b/src/js/terminal.js @@ -152,50 +152,6 @@ app.controller('TerminalController', ['$scope', '$timeout', '$location', 'Client }); }; - $scope.pauseApp = function () { - $('#pauseAppModal').modal('show'); - }; - - $scope.pauseAppBegin = function () { - $scope.appBusy = true; - - 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(waitUntilInPauseState, 2000); - }); - } - - Client.debugApp($scope.selected.value, true, function (error) { - if (error) return console.error(error); - - $('#pauseAppModal').modal('hide'); - - waitUntilInPauseState(); - }); - }; - - $scope.pauseAppDone = function () { - $scope.appBusy = true; - - function waitUntilInNormalState() { - 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(waitUntilInNormalState, 2000); - }); - } - - Client.debugApp($scope.selected.value, false, function (error) { - if (error) return console.error(error); - - waitUntilInNormalState(); - }); - }; - function createTerminalSocket() { try { // websocket cannot use relative urls diff --git a/src/terminal.html b/src/terminal.html index 6728d5a0c..0dc3fc56c 100644 --- a/src/terminal.html +++ b/src/terminal.html @@ -101,25 +101,6 @@ - -
Use the repair button to retry failed operations or if the app is down.
- -If the app is not starting up because of a broken plugin or misconfiguration, use the Terminal - and click 'Pause' to edit the app's filesystem.
- + +If the app is constantly restarting because of a broken plugin or misconfiguration, place the app in recovery mode. + Use the following instructions + to get the app running again. +
+ + +If a task (configuration, update, restore, backup) resulted in the app ending up in an error state, you can retry the operation.
An error occurred during the {{ app.error.installationState | taskName }} operation: {{ app.error.reason + ': ' + app.error.message }}
- - +