1
0
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:
jaasen-livefront
2025-01-16 14:06:26 -08:00
parent 6e4d94085c
commit 3f58a8366e

View File

@@ -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;
}