Don't keep prepending login to the page title

Now uses #6456 to prevent the page title being appended to the previous page title when the user is automatically logged out.
This commit is contained in:
Rachel Breeze
2019-12-19 07:50:59 +00:00
committed by Kenn Jacobsen
parent e92ab7d3a5
commit b8387ac4e5

View File

@@ -76,7 +76,6 @@
// Check if it is a new user
const inviteVal = $location.search().invite;
vm.baseTitle = $scope.$root.locationTitle;
//1 = enter password, 2 = password set, 3 = invalid token
if (inviteVal && (inviteVal === "1" || inviteVal === "2")) {
@@ -457,9 +456,7 @@
break;
}
if (title != null) {
$scope.$root.locationTitle = title + " - " + vm.baseTitle;
}
$scope.$emit("$changeTitle", title);
}
}