diff --git a/src/views/app.html b/src/views/app.html index 77dd67073..e35569ee9 100644 --- a/src/views/app.html +++ b/src/views/app.html @@ -471,7 +471,7 @@
- +
@@ -571,7 +571,7 @@

- + Terminal Logs diff --git a/src/views/app.js b/src/views/app.js index 175a2c6af..6e6e9a09f 100644 --- a/src/views/app.js +++ b/src/views/app.js @@ -52,18 +52,15 @@ angular.module('Application').controller('AppController', ['$scope', '$location' $scope.view = ''; $scope.app = null; - $scope.activeTask = null; - $scope.appIsRestarting = false; - $scope.ready = false; - $scope.HOST_PORT_MIN = 1024; - $scope.HOST_PORT_MAX = 65535; $scope.config = Client.getConfig(); $scope.user = Client.getUserInfo(); $scope.domains = []; $scope.groups = []; $scope.users = []; - $scope.backupsEnabled = true; - $scope.disableIndexingTemplate = '# Disable search engine indexing\n\nUser-agent: *\nDisallow: /'; + + $scope.HOST_PORT_MIN = 1024; + $scope.HOST_PORT_MAX = 65535; + $scope.ROBOTS_DISABLE_INDEXING_TEMPLATE = '# Disable search engine indexing\n\nUser-agent: *\nDisallow: /'; $scope.setView = function (view) { if ($scope.view === view) return; @@ -599,6 +596,7 @@ angular.module('Application').controller('AppController', ['$scope', '$location' $scope.debug = { show: function () {}, + appIsRestarting: false, stopAppTask: function (taskId) { Client.stopTask(taskId, function (error) { @@ -608,12 +606,12 @@ angular.module('Application').controller('AppController', ['$scope', '$location' }, restartApp: function () { - $scope.appIsRestarting = true; + $scope.debug.appIsRestarting = true; Client.restartApp($scope.app.id, function (error) { if (error) Client.error(error); - $scope.appIsRestarting = false; + $scope.debug.appIsRestarting = false; }); } }; @@ -778,9 +776,7 @@ angular.module('Application').controller('AppController', ['$scope', '$location' $scope.backups.show(); $scope.updates.show(); - $scope.ready = true; - - var refreshTimer = $interval(function () { refreshApp(); }, 5000); // call with inline function to avoid iteration argument passed see $interval docs + var refreshTimer = $interval(function () { refreshApp(); }, 3000); // call with inline function to avoid iteration argument passed see $interval docs $scope.$on('$destroy', function () { $interval.cancel(refreshTimer); });