mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 07:43:35 +00:00
[PM-5468] Ensure prototypes available on memory stored objects (#7399)
* Hide account switcher in addEdit generator * Handle AddEditCipher deserialization * Opaque types are not serializable * Better handle jsonification of login uris * Ensure we don't overwrite original with clone * Ensure cipherView prototype is always restored if it exists
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
<ng-content select=".center"></ng-content>
|
||||
<div class="right">
|
||||
<ng-content select=".right"></ng-content>
|
||||
<ng-container *ngIf="authedAccounts$ | async">
|
||||
<ng-container *ngIf="(authedAccounts$ | async) && !hideAccountSwitcher">
|
||||
<app-current-account></app-current-account>
|
||||
</ng-container>
|
||||
</div>
|
||||
|
||||
@@ -12,6 +12,7 @@ import { flagEnabled } from "../flags";
|
||||
})
|
||||
export class HeaderComponent {
|
||||
@Input() noTheme = false;
|
||||
@Input() hideAccountSwitcher = false;
|
||||
authedAccounts$: Observable<boolean>;
|
||||
constructor(accountService: AccountService) {
|
||||
this.authedAccounts$ = accountService.accounts$.pipe(
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<app-header>
|
||||
<app-header [hideAccountSwitcher]="comingFromAddEdit">
|
||||
<div class="left">
|
||||
<app-pop-out [show]="!comingFromAddEdit"></app-pop-out>
|
||||
<button type="button" (click)="close()" *ngIf="comingFromAddEdit">
|
||||
|
||||
Reference in New Issue
Block a user