mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 08:43:33 +00:00
[PM-8368] AnonLayout Footer Updates (#9397)
* add hostname to footer via env service * add logic for showing/hiding environment * add docs * add web env-selector * refactor to use one slot for env-selector * add storybook docs * add env hostname to stories * remove sample route
This commit is contained in:
@@ -9,6 +9,7 @@ export interface AnonLayoutWrapperData {
|
||||
pageTitle?: string;
|
||||
pageSubtitle?: string;
|
||||
pageIcon?: Icon;
|
||||
showReadonlyHostname?: boolean;
|
||||
}
|
||||
|
||||
@Component({
|
||||
@@ -20,6 +21,7 @@ export class AnonLayoutWrapperComponent {
|
||||
protected pageTitle: string;
|
||||
protected pageSubtitle: string;
|
||||
protected pageIcon: Icon;
|
||||
protected showReadonlyHostname: boolean;
|
||||
|
||||
constructor(
|
||||
private route: ActivatedRoute,
|
||||
@@ -27,6 +29,7 @@ export class AnonLayoutWrapperComponent {
|
||||
) {
|
||||
this.pageTitle = this.i18nService.t(this.route.snapshot.firstChild.data["pageTitle"]);
|
||||
this.pageSubtitle = this.i18nService.t(this.route.snapshot.firstChild.data["pageSubtitle"]);
|
||||
this.pageIcon = this.route.snapshot.firstChild.data["pageIcon"]; // don't translate
|
||||
this.pageIcon = this.route.snapshot.firstChild.data["pageIcon"];
|
||||
this.showReadonlyHostname = this.route.snapshot.firstChild.data["showReadonlyHostname"];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user