fix(app):fix additional not save warning EE-799 (#5161)
* fix(app):fix additional not save warning EE-799 * fix additional warning when user leave page * fix additional warning when user leave page in buildImageController.js * fix docker build controller additional warning message * fix changes required from reviews * - refactored ondestroy hook function to align it closer to (below) oninit - removed duplicated hook func duplication in configurationController Co-authored-by: zees-dev <dev.786zshan@gmail.com>
This commit is contained in:
@@ -53,6 +53,10 @@ export class EditEdgeStackViewController {
|
||||
};
|
||||
}
|
||||
|
||||
$onDestroy() {
|
||||
this.state.isEditorDirty = false;
|
||||
}
|
||||
|
||||
async uiCanExit() {
|
||||
if (this.formValues.StackFileContent !== this.oldFileContent && this.state.isEditorDirty) {
|
||||
return this.ModalService.confirmWebEditorDiscard();
|
||||
|
||||
Reference in New Issue
Block a user