mirror of https://github.com/portainer/portainer
fix(docker): clone config [EE-5115] (#8575)
parent
96e5d44cc2
commit
6074d1fcb5
|
@ -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];
|
||||
|
|
|
@ -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"
|
||||
></web-editor-form>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue