1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-23 07:19:41 +02:00

fix(k8s-config): check for config editor change before setting as dirty

This commit is contained in:
Felix Han 2021-05-20 11:46:17 +12:00
parent 47d462f085
commit 5618794927

View file

@ -43,8 +43,10 @@ class KubernetesConfigurationDataController {
} }
async editorUpdateAsync(cm) { async editorUpdateAsync(cm) {
this.formValues.DataYaml = cm.getValue(); if (this.formValues.DataYaml !== cm.getValue()) {
this.isEditorDirty = true; this.formValues.DataYaml = cm.getValue();
this.isEditorDirty = true;
}
} }
editorUpdate(cm) { editorUpdate(cm) {