mirror of
https://github.com/bitwarden/desktop
synced 2025-12-22 11:13:17 +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 9e8873e5c7.
* Updated load function
Co-authored-by: Vincent Salucci <vsalucci@bitwarden.com>
This commit is contained in:
@@ -40,7 +40,10 @@ export class AddEditComponent extends BaseAddEditComponent implements OnChanges
|
|||||||
}
|
}
|
||||||
|
|
||||||
async load() {
|
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();
|
super.load();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user