Update Add-Edit Component load function (#416)
* Apply save changes prompt to groupings * Revert "Apply save changes prompt to groupings" This reverts commit 9e8873e5c7716f06bd228a10906d0765bfe575a4. * Updated load function Co-authored-by: Vincent Salucci <vsalucci@bitwarden.com>
This commit is contained in:
parent
68bc1ebbff
commit
c0add18db2
|
@ -40,7 +40,10 @@ export class AddEditComponent extends BaseAddEditComponent implements OnChanges
|
|||
}
|
||||
|
||||
async load() {
|
||||
this.cipher = null;
|
||||
if (document.querySelectorAll('app-vault-add-edit .ng-dirty').length === 0 ||
|
||||
(this.cipher != null && this.cipherId !== this.cipher.id)) {
|
||||
this.cipher = null;
|
||||
}
|
||||
super.load();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue