diff --git a/app/docker/views/configs/create/createConfigController.js b/app/docker/views/configs/create/createConfigController.js index ea5fdf40c..8d0a2661c 100644 --- a/app/docker/views/configs/create/createConfigController.js +++ b/app/docker/views/configs/create/createConfigController.js @@ -47,7 +47,7 @@ class CreateConfigController { try { let data = await this.ConfigService.config(this.$transition$.params().id); this.formValues.Name = data.Name + '_copy'; - this.formValues.Data = data.Data; + this.formValues.ConfigContent = data.Data; let labels = _.keys(data.Labels); for (let i = 0; i < labels.length; i++) { let labelName = labels[i]; diff --git a/app/docker/views/configs/create/createconfig.html b/app/docker/views/configs/create/createconfig.html index 557e84fee..402b1eda0 100644 --- a/app/docker/views/configs/create/createconfig.html +++ b/app/docker/views/configs/create/createconfig.html @@ -21,7 +21,7 @@ placeholder="Define or paste the content of your config here" yml="false" on-change="(ctrl.editorUpdate)" - value="ctrl.formValues.Data" + value="ctrl.formValues.ConfigContent" >