mirror of
https://github.com/bitwarden/browser
synced 2025-12-14 15:23:33 +00:00
[PM-19654] add hideIcon option to extension anon layout (#14045)
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
[hideLogo]="true"
|
||||
[maxWidth]="maxWidth"
|
||||
[hideFooter]="hideFooter"
|
||||
[hideIcon]="hideIcon"
|
||||
>
|
||||
<router-outlet></router-outlet>
|
||||
<router-outlet slot="secondary" name="secondary"></router-outlet>
|
||||
|
||||
@@ -26,6 +26,7 @@ export interface ExtensionAnonLayoutWrapperData extends AnonLayoutWrapperData {
|
||||
showBackButton?: boolean;
|
||||
showLogo?: boolean;
|
||||
hideFooter?: boolean;
|
||||
hideIcon?: boolean;
|
||||
}
|
||||
|
||||
@Component({
|
||||
@@ -48,6 +49,7 @@ export class ExtensionAnonLayoutWrapperComponent implements OnInit, OnDestroy {
|
||||
protected showAcctSwitcher: boolean;
|
||||
protected showBackButton: boolean;
|
||||
protected showLogo: boolean = true;
|
||||
protected hideIcon: boolean = false;
|
||||
|
||||
protected pageTitle: string;
|
||||
protected pageSubtitle: string;
|
||||
@@ -129,6 +131,10 @@ export class ExtensionAnonLayoutWrapperComponent implements OnInit, OnDestroy {
|
||||
if (firstChildRouteData["showLogo"] !== undefined) {
|
||||
this.showLogo = Boolean(firstChildRouteData["showLogo"]);
|
||||
}
|
||||
|
||||
if (firstChildRouteData["hideIcon"] !== undefined) {
|
||||
this.hideIcon = Boolean(firstChildRouteData["hideIcon"]);
|
||||
}
|
||||
}
|
||||
|
||||
private listenForServiceDataChanges() {
|
||||
@@ -180,6 +186,10 @@ export class ExtensionAnonLayoutWrapperComponent implements OnInit, OnDestroy {
|
||||
if (data.showLogo !== undefined) {
|
||||
this.showLogo = data.showLogo;
|
||||
}
|
||||
|
||||
if (data.hideIcon !== undefined) {
|
||||
this.hideIcon = data.hideIcon;
|
||||
}
|
||||
}
|
||||
|
||||
private handleStringOrTranslation(value: string | Translation): string {
|
||||
|
||||
@@ -242,6 +242,7 @@ const initialData: ExtensionAnonLayoutWrapperData = {
|
||||
showAcctSwitcher: true,
|
||||
showBackButton: true,
|
||||
showLogo: true,
|
||||
hideIcon: false,
|
||||
};
|
||||
|
||||
const changedData: ExtensionAnonLayoutWrapperData = {
|
||||
@@ -255,6 +256,7 @@ const changedData: ExtensionAnonLayoutWrapperData = {
|
||||
showAcctSwitcher: false,
|
||||
showBackButton: false,
|
||||
showLogo: false,
|
||||
hideIcon: false,
|
||||
};
|
||||
|
||||
@Component({
|
||||
|
||||
Reference in New Issue
Block a user