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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

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();
} }
} }