diff --git a/src/views/app.html b/src/views/app.html index b6eaf195c..0b418e176 100644 --- a/src/views/app.html +++ b/src/views/app.html @@ -321,7 +321,8 @@
Email
Updates
Backups
-
Debug
+
Console
+
Repair
Uninstall
@@ -730,24 +731,11 @@ -
-
-
- -
- Version - {{ app.manifest.title }} {{ app.upstreamVersion }} (Package v{{ app.manifest.version }}) -
- App ID {{ app.id }} -
- Installed {{ app.creationTime | prettyDate }} -
-
-
+
-

This will open a console connection to the app. The terminal is sandboxed and only provides access to the app container's filesystem.

+

This will open a console connection to the app. The terminal is sandboxed and only provides access to this app container's filesystem.

Terminal Logs
@@ -756,13 +744,15 @@
-

If the app is not responding, try restarting the app.

-
-
+
+ +
@@ -773,9 +763,9 @@

An error occurred during the {{ app.error.installationState | taskName }} operation: {{ app.error.reason + ': ' + app.error.message }}

- + - +
diff --git a/src/views/app.js b/src/views/app.js index 14b5ffc07..d71ee0bf7 100644 --- a/src/views/app.js +++ b/src/views/app.js @@ -661,23 +661,16 @@ angular.module('Application').controller('AppController', ['$scope', '$location' } }; - $scope.debug = { + $scope.console = { show: function () {}, busyRunState: false, - stopAppTask: function (taskId) { - Client.stopTask(taskId, function (error) { - // we can ignore a call trying to cancel an already done task - if (error && error.statusCode !== 409) Client.error(error); - }); - }, - toggleRunState: function () { var func = $scope.app.runState === RSTATES.STOPPED ? Client.startApp : Client.stopApp; - $scope.debug.busyRunState = true; + $scope.console.busyRunState = true; func($scope.app.id, function (error) { - $scope.debug.busyRunState = false; + $scope.console.busyRunState = false; if (error) return Client.error(error); refreshApp(); @@ -821,8 +814,10 @@ angular.module('Application').controller('AppController', ['$scope', '$location' backupId: '', + show: function () {}, + // this prepares the repair dialog with whatever is required for repair action - show: function () { + confirm: function () { $scope.repair.error = {}; $scope.repair.busy = false; $scope.repair.location = null; @@ -917,7 +912,14 @@ angular.module('Application').controller('AppController', ['$scope', '$location' $scope.repair.busy = false; $('#repairModal').modal('hide'); }); - } + }, + + stopAppTask: function (taskId) { + Client.stopTask(taskId, function (error) { + // we can ignore a call trying to cancel an already done task + if (error && error.statusCode !== 409) Client.error(error); + }); + }, }; $scope.postInstallConfirm = {