mirror of
https://github.com/bitwarden/browser
synced 2025-12-18 17:23:37 +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);
|
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) {
|
if (result?.action === AddEditCipherDialogResult.Edited) {
|
||||||
this.refresh();
|
this.refresh();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Navigate to the vault if the dialog was closed by any other action.
|
|
||||||
this.go({ cipherId: null, itemId: null, action: null });
|
this.go({ cipherId: null, itemId: null, action: null });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user