portainer/app/edge/components/edit-edge-stack-form/editEdgeStackFormController.js

15 lines
371 B
JavaScript

import angular from 'angular';
class EditEdgeStackFormController {
constructor() {
this.editorUpdate = this.editorUpdate.bind(this);
}
editorUpdate(cm) {
this.model.StackFileContent = cm.getValue();
}
}
angular.module('portainer.edge').controller('EditEdgeStackFormController', EditEdgeStackFormController);
export default EditEdgeStackFormController;