added confirmation modal to advanced app created by web editor

pull/5568/head
Felix Han 2021-09-01 13:13:49 +12:00
parent 1cbfd96738
commit b3b168631d
1 changed files with 6 additions and 0 deletions

View File

@ -177,6 +177,12 @@ class KubernetesCreateApplicationController {
});
}
async uiCanExit() {
if (this.stackFileContent && this.state.isEditorDirty) {
return this.ModalService.confirmWebEditorDiscard();
}
}
setPullImageValidity(validity) {
this.state.pullImageValidity = validity;
}