mirror of
https://github.com/bitwarden/browser
synced 2026-02-11 14:04:03 +00:00
set showRestore after canDeleteCipher is set
This commit is contained in:
@@ -282,7 +282,6 @@ export class VaultItemDialogComponent implements OnInit, OnDestroy {
|
||||
|
||||
async ngOnInit() {
|
||||
this.cipher = await this.getDecryptedCipherView(this.formConfig);
|
||||
this.showRestore = await this.canUserRestore();
|
||||
|
||||
if (this.cipher) {
|
||||
if (this.cipher.decryptionFailure) {
|
||||
@@ -316,6 +315,7 @@ export class VaultItemDialogComponent implements OnInit, OnDestroy {
|
||||
|
||||
this.filter = await firstValueFrom(this.routedVaultFilterService.filter$);
|
||||
|
||||
this.showRestore = await this.canUserRestore();
|
||||
this.performingInitialLoad = false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user