mirror of
https://github.com/bitwarden/desktop.git
synced 2024-09-27 03:53:00 +02:00
Update Add-Edit Component load function (#416)
* Apply save changes prompt to groupings
* Revert "Apply save changes prompt to groupings"
This reverts commit 9e8873e5c7
.
* 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
Block a user