branding: fix login page title

This commit is contained in:
Girish Ramakrishnan
2020-03-28 22:34:56 -07:00
parent ad48bc0ee8
commit 5542393eb5
5 changed files with 5 additions and 5 deletions
+2 -1
View File
@@ -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;