1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-18 09:13:33 +00:00

refactor comments

This commit is contained in:
Nick Krantz
2024-09-25 14:29:31 -05:00
parent 867bff99e5
commit 970427e425

View File

@@ -899,12 +899,11 @@ export class VaultComponent implements OnInit, OnDestroy {
const result: AddEditCipherDialogCloseResult = await firstValueFrom(dialogRef.closed);
// View the cipher if the dialog was closed by editing the cipher.
// When the cipher was edited, refresh the vault view
if (result?.action === AddEditCipherDialogResult.Edited) {
this.refresh();
}
// Navigate to the vault if the dialog was closed by any other action.
this.go({ cipherId: null, itemId: null, action: null });
}