mirror of
https://github.com/bitwarden/browser.git
synced 2025-01-08 19:18:02 +01:00
[PM-16505] added hideFooter value to browser extension anon call (#12619)
This commit is contained in:
parent
39e5dd880b
commit
6bc0ad2367
@ -20,6 +20,7 @@
|
|||||||
[showReadonlyHostname]="showReadonlyHostname"
|
[showReadonlyHostname]="showReadonlyHostname"
|
||||||
[hideLogo]="true"
|
[hideLogo]="true"
|
||||||
[maxWidth]="maxWidth"
|
[maxWidth]="maxWidth"
|
||||||
|
[hideFooter]="hideFooter"
|
||||||
>
|
>
|
||||||
<router-outlet></router-outlet>
|
<router-outlet></router-outlet>
|
||||||
<router-outlet slot="secondary" name="secondary"></router-outlet>
|
<router-outlet slot="secondary" name="secondary"></router-outlet>
|
||||||
|
@ -25,6 +25,7 @@ export interface ExtensionAnonLayoutWrapperData extends AnonLayoutWrapperData {
|
|||||||
showAcctSwitcher?: boolean;
|
showAcctSwitcher?: boolean;
|
||||||
showBackButton?: boolean;
|
showBackButton?: boolean;
|
||||||
showLogo?: boolean;
|
showLogo?: boolean;
|
||||||
|
hideFooter?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
@ -54,6 +55,7 @@ export class ExtensionAnonLayoutWrapperComponent implements OnInit, OnDestroy {
|
|||||||
protected showReadonlyHostname: boolean;
|
protected showReadonlyHostname: boolean;
|
||||||
protected maxWidth: "md" | "3xl";
|
protected maxWidth: "md" | "3xl";
|
||||||
protected hasLoggedInAccount: boolean = false;
|
protected hasLoggedInAccount: boolean = false;
|
||||||
|
protected hideFooter: boolean;
|
||||||
|
|
||||||
protected theme: string;
|
protected theme: string;
|
||||||
protected logo = ExtensionBitwardenLogo;
|
protected logo = ExtensionBitwardenLogo;
|
||||||
@ -112,6 +114,7 @@ export class ExtensionAnonLayoutWrapperComponent implements OnInit, OnDestroy {
|
|||||||
this.pageIcon = firstChildRouteData["pageIcon"];
|
this.pageIcon = firstChildRouteData["pageIcon"];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.hideFooter = Boolean(firstChildRouteData["hideFooter"]);
|
||||||
this.showReadonlyHostname = Boolean(firstChildRouteData["showReadonlyHostname"]);
|
this.showReadonlyHostname = Boolean(firstChildRouteData["showReadonlyHostname"]);
|
||||||
this.maxWidth = firstChildRouteData["maxWidth"];
|
this.maxWidth = firstChildRouteData["maxWidth"];
|
||||||
|
|
||||||
@ -158,6 +161,10 @@ export class ExtensionAnonLayoutWrapperComponent implements OnInit, OnDestroy {
|
|||||||
this.pageIcon = data.pageIcon !== null ? data.pageIcon : null;
|
this.pageIcon = data.pageIcon !== null ? data.pageIcon : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (data.hideFooter !== undefined) {
|
||||||
|
this.hideFooter = data.hideFooter !== null ? data.hideFooter : null;
|
||||||
|
}
|
||||||
|
|
||||||
if (data.showReadonlyHostname !== undefined) {
|
if (data.showReadonlyHostname !== undefined) {
|
||||||
this.showReadonlyHostname = data.showReadonlyHostname;
|
this.showReadonlyHostname = data.showReadonlyHostname;
|
||||||
}
|
}
|
||||||
@ -194,6 +201,7 @@ export class ExtensionAnonLayoutWrapperComponent implements OnInit, OnDestroy {
|
|||||||
this.showBackButton = null;
|
this.showBackButton = null;
|
||||||
this.showLogo = null;
|
this.showLogo = null;
|
||||||
this.maxWidth = null;
|
this.maxWidth = null;
|
||||||
|
this.hideFooter = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnDestroy() {
|
ngOnDestroy() {
|
||||||
|
@ -713,6 +713,7 @@ const routes: Routes = [
|
|||||||
pageTitle: {
|
pageTitle: {
|
||||||
key: "importantNotice",
|
key: "importantNotice",
|
||||||
},
|
},
|
||||||
|
hideFooter: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user