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

fix(edge stacks): allow viewing existing kompose stacks [EE-4967] (#8405)

Co-authored-by: testa113 <testa113>
Co-authored-by: Matt Hook <hookenz@gmail.com>
This commit is contained in:
Ali 2023-01-31 10:03:21 +13:00 committed by GitHub
parent 53eb5aa1ee
commit 8574dd2371
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 50 additions and 12 deletions

View file

@ -5,6 +5,10 @@ angular.module('portainer.app').controller('CodeEditorController', function Code
if (value && value.currentValue && ctrl.editor && ctrl.editor.getValue() !== value.currentValue) {
ctrl.editor.setValue(value.currentValue);
}
if (ctrl.editor) {
ctrl.editor.setOption('readOnly', ctrl.readOnly);
}
};
this.$onInit = function () {