1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-10 08:15:25 +02:00

EE-3487 update ui of docker/configs (#7370)

This commit is contained in:
Rex Wang 2022-08-01 20:31:56 +08:00 committed by GitHub
parent 8262487401
commit a95d734c34
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 17 additions and 9 deletions

View file

@ -147,8 +147,8 @@ class CreateConfigController {
}
}
editorUpdate(cm) {
this.formValues.ConfigContent = cm.getValue();
editorUpdate(value) {
this.formValues.ConfigContent = value;
this.state.isEditorDirty = true;
}
}

View file

@ -16,13 +16,13 @@
<!-- config-data -->
<div class="form-group">
<div class="col-sm-12" ng-if="ctrl.formValues.displayCodeEditor">
<code-editor
<web-editor-form
identifier="config-creation-editor"
placeholder="Define or paste the content of your config here"
yml="false"
on-change="(ctrl.editorUpdate)"
value="ctrl.formValues.Data"
></code-editor>
></web-editor-form>
</div>
</div>
<!-- !config-data -->