diff --git a/src/index.html b/src/index.html index 3afd772a7..d28433a04 100644 --- a/src/index.html +++ b/src/index.html @@ -5,7 +5,7 @@ - Cloudron + diff --git a/src/js/login.js b/src/js/login.js index 258957d79..c133a6c85 100644 --- a/src/js/login.js +++ b/src/js/login.js @@ -120,7 +120,7 @@ app.controller('LoginController', ['$scope', '$http', function ($scope, $http) { }; $scope.showLogin = function () { - window.document.title = 'Cloudron Login'; + if ($scope.status) window.document.title = $scope.status.cloudronName + ' Login'; $scope.mode = 'login'; $scope.error = false; setTimeout(function () { $('#inputUsername').focus(); }, 200); @@ -137,6 +137,7 @@ app.controller('LoginController', ['$scope', '$http', function ($scope, $http) { if (status !== 200) return; + if ($scope.mode === 'login') window.document.title = data.cloudronName + ' Login'; $scope.status = data; }).error(function () { $scope.initialized = false; diff --git a/src/login.html b/src/login.html index 951543c01..1913eadfa 100644 --- a/src/login.html +++ b/src/login.html @@ -5,7 +5,8 @@ - Cloudron Login + + diff --git a/src/logs.html b/src/logs.html index 4c18c020a..63af169e6 100644 --- a/src/logs.html +++ b/src/logs.html @@ -4,7 +4,6 @@ - Logs diff --git a/src/terminal.html b/src/terminal.html index 0dc3fc56c..71ca765bf 100644 --- a/src/terminal.html +++ b/src/terminal.html @@ -4,7 +4,6 @@ - Terminal