for secrets manager show SM title (#5780)
* for secrets manager show SM title * removing convoluted i18 conversion * removing unused messages, and updating navbar to use the proper messages
This commit is contained in:
parent
090a5bcced
commit
0fc0e6226f
|
@ -23,7 +23,12 @@ export class RouterService {
|
|||
.subscribe((event: NavigationEnd) => {
|
||||
this.currentUrl = event.url;
|
||||
|
||||
let title = i18nService.t("pageTitle", "Bitwarden");
|
||||
let title = i18nService.t("bitWebVault");
|
||||
|
||||
if (this.currentUrl.includes("/sm/")) {
|
||||
title = i18nService.t("bitSecretsManager");
|
||||
}
|
||||
|
||||
let child = this.activatedRoute.firstChild;
|
||||
while (child.firstChild) {
|
||||
child = child.firstChild;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<nav class="navbar navbar-expand navbar-dark" [ngClass]="{ 'nav-background-alt': selfHosted }">
|
||||
<div class="container">
|
||||
<a class="navbar-brand" routerLink="/" appA11yTitle="{{ 'pageTitle' | i18n : 'Bitwarden' }}">
|
||||
<a class="navbar-brand" routerLink="/" appA11yTitle="{{ 'bitWebVault' | i18n }}">
|
||||
<i class="bwi bwi-shield" aria-hidden="true"></i>
|
||||
</a>
|
||||
<div class="collapse navbar-collapse">
|
||||
|
|
|
@ -1,14 +1,4 @@
|
|||
{
|
||||
"pageTitle": {
|
||||
"message": "$APP_NAME$ Web Vault",
|
||||
"description": "The title of the website in the browser window.",
|
||||
"placeholders": {
|
||||
"app_name": {
|
||||
"content": "$1",
|
||||
"example": "Bitwarden"
|
||||
}
|
||||
}
|
||||
},
|
||||
"whatTypeOfItem": {
|
||||
"message": "What type of item is this?"
|
||||
},
|
||||
|
@ -2645,6 +2635,12 @@
|
|||
"webVault": {
|
||||
"message": "Web vault"
|
||||
},
|
||||
"bitWebVault": {
|
||||
"message": "Bitwarden Web vault"
|
||||
},
|
||||
"bitSecretsManager": {
|
||||
"message": "Bitwarden Secrets Manager"
|
||||
},
|
||||
"loggedIn": {
|
||||
"message": "Logged in"
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue