Skip to content

Commit

Permalink
v8: Fix for login screen title display (#7412)
Browse files Browse the repository at this point in the history
  • Loading branch information
RachBreeze authored May 26, 2020
1 parent f33b4b7 commit c3c98e2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/Umbraco.Web.UI.Client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@
}

if (vm.loginForm.$invalid) {
SetTitle();
return;
}

Expand Down Expand Up @@ -257,6 +258,7 @@
vm.loginForm.password.$setValidity('auth', true);
}
});
SetTitle();
}

function requestPasswordResetSubmit(email) {
Expand Down
6 changes: 4 additions & 2 deletions src/Umbraco.Web.UI.Client/src/main.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,14 @@ function MainController($scope, $location, appState, treeService, notificationsS
appState.setSearchState("show", false);
};

$scope.showLoginScreen = function(isTimedOut) {
$scope.showLoginScreen = function (isTimedOut) {
$scope.login.pageTitle = $scope.$root.locationTitle;
$scope.login.isTimedOut = isTimedOut;
$scope.login.show = true;
};

$scope.hideLoginScreen = function() {
$scope.hideLoginScreen = function () {
$scope.$root.locationTitle = $scope.login.pageTitle;
$scope.login.show = false;
};

Expand Down

0 comments on commit c3c98e2

Please sign in to comment.