mirror of
https://github.com/bitwarden/browser
synced 2025-12-18 09:13:33 +00:00
refactor comments
This commit is contained in:
@@ -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 });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user