mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-22 11:45:59 +01:00
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) => {
|
.subscribe((event: NavigationEnd) => {
|
||||||
this.currentUrl = event.url;
|
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;
|
let child = this.activatedRoute.firstChild;
|
||||||
while (child.firstChild) {
|
while (child.firstChild) {
|
||||||
child = child.firstChild;
|
child = child.firstChild;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<nav class="navbar navbar-expand navbar-dark" [ngClass]="{ 'nav-background-alt': selfHosted }">
|
<nav class="navbar navbar-expand navbar-dark" [ngClass]="{ 'nav-background-alt': selfHosted }">
|
||||||
<div class="container">
|
<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>
|
<i class="bwi bwi-shield" aria-hidden="true"></i>
|
||||||
</a>
|
</a>
|
||||||
<div class="collapse navbar-collapse">
|
<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": {
|
"whatTypeOfItem": {
|
||||||
"message": "What type of item is this?"
|
"message": "What type of item is this?"
|
||||||
},
|
},
|
||||||
@ -2645,6 +2635,12 @@
|
|||||||
"webVault": {
|
"webVault": {
|
||||||
"message": "Web vault"
|
"message": "Web vault"
|
||||||
},
|
},
|
||||||
|
"bitWebVault": {
|
||||||
|
"message": "Bitwarden Web vault"
|
||||||
|
},
|
||||||
|
"bitSecretsManager": {
|
||||||
|
"message": "Bitwarden Secrets Manager"
|
||||||
|
},
|
||||||
"loggedIn": {
|
"loggedIn": {
|
||||||
"message": "Logged in"
|
"message": "Logged in"
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user