mirror of https://github.com/portainer/portainer
added confirmation modal to advanced app created by web editor
parent
1cbfd96738
commit
b3b168631d
|
@ -177,6 +177,12 @@ class KubernetesCreateApplicationController {
|
|||
});
|
||||
}
|
||||
|
||||
async uiCanExit() {
|
||||
if (this.stackFileContent && this.state.isEditorDirty) {
|
||||
return this.ModalService.confirmWebEditorDiscard();
|
||||
}
|
||||
}
|
||||
|
||||
setPullImageValidity(validity) {
|
||||
this.state.pullImageValidity = validity;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue