1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 16:23:44 +00:00

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:
Vincent Salucci
2020-03-23 12:48:14 -05:00
committed by GitHub
parent 68bc1ebbff
commit c0add18db2

View File

@@ -40,7 +40,10 @@ export class AddEditComponent extends BaseAddEditComponent implements OnChanges
} }
async load() { async load() {
if (document.querySelectorAll('app-vault-add-edit .ng-dirty').length === 0 ||
(this.cipher != null && this.cipherId !== this.cipher.id)) {
this.cipher = null; this.cipher = null;
}
super.load(); super.load();
} }
} }