mirror of
https://github.com/portainer/portainer.git
synced 2025-08-04 21:35:23 +02:00
EE-3487 update ui of docker/configs (#7370)
This commit is contained in:
parent
8262487401
commit
a95d734c34
5 changed files with 17 additions and 9 deletions
|
@ -147,8 +147,8 @@ class CreateConfigController {
|
|||
}
|
||||
}
|
||||
|
||||
editorUpdate(cm) {
|
||||
this.formValues.ConfigContent = cm.getValue();
|
||||
editorUpdate(value) {
|
||||
this.formValues.ConfigContent = value;
|
||||
this.state.isEditorDirty = true;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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 -->
|
||||
|
|
|
@ -15,11 +15,11 @@
|
|||
<td>ID</td>
|
||||
<td>
|
||||
{{ config.Id }}
|
||||
<button authorization="DockerConfigDelete" class="btn btn-xs btn-danger" ng-click="removeConfig(config.Id)"
|
||||
><i class="fa fa-trash-alt space-right" aria-hidden="true"></i>Delete this config</button
|
||||
<button authorization="DockerConfigDelete" class="btn btn-xs btn-dangerlight" ng-click="removeConfig(config.Id)"
|
||||
><pr-icon icon="'trash-2'" feather="true"></pr-icon>Delete this config</button
|
||||
>
|
||||
<button authorization="DockerConfigCreate" class="btn btn-xs btn-primary" ui-sref="docker.configs.new({id: config.Id})"
|
||||
><i class="fa fa-copy space-right" aria-hidden="true"></i>Clone config</button
|
||||
<button authorization="DockerConfigCreate" class="btn btn-xs btn-secondary" ui-sref="docker.configs.new({id: config.Id})"
|
||||
><pr-icon icon="'copy'" feather="true"></pr-icon>Clone config</button
|
||||
>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue