This commit is contained in:
parent
0627b3d40b
commit
1eee2033b7
|
@ -54,6 +54,7 @@ export default function Editor(
|
|||
|
||||
self.validate();
|
||||
});
|
||||
|
||||
domEvent.bind(this._parent, 'wheel', function(event) {
|
||||
// stop propagation and handle scroll differently
|
||||
event.preventDefault();
|
||||
|
@ -65,7 +66,7 @@ export default function Editor(
|
|||
if (self.isOpen()) {
|
||||
self.close();
|
||||
}
|
||||
if (context.newSelection[0] && self._parent) { // ? Try and replace self._parent with self.isOpen() cause idk why it works yet
|
||||
if (context.newSelection && self._parent) { // ? Try and replace self._parent with self.isOpen() cause idk why it works yet
|
||||
if (context.newSelection[0].type == "bpmn:ScriptTask") {
|
||||
domClasses(self._parent).add('enabled');
|
||||
self._state.isEnabled = true;
|
||||
|
@ -88,7 +89,7 @@ export default function Editor(
|
|||
|
||||
eventBus.on('editor.scripts.response', function (response) {
|
||||
if(response.type == "error"){
|
||||
self.scripts = [{name:"No Scripts Available", description:"Either pound sand or contact your system administrator "}];
|
||||
self.scripts = [{name:"No Scripts Available", description:"Contact your system administrator if this is abnormal"}];
|
||||
} else {
|
||||
self.scripts = response.scripts;
|
||||
}
|
||||
|
@ -97,7 +98,7 @@ export default function Editor(
|
|||
|
||||
eventBus.on('editor.objects.response', function (response) {
|
||||
if(response.type == "error"){
|
||||
self.objects = [{name:"No Objects Available", description:"Either pound sand or contact your system administrator "}];
|
||||
self.objects = [{name:"No Data Objects Available", description:"Contact your system administrator if this is abnormal"}];
|
||||
} else {
|
||||
self.objects = response.objects;
|
||||
}
|
||||
|
@ -108,10 +109,13 @@ export default function Editor(
|
|||
self._scripts_menu.innerHTML = "";
|
||||
self.scripts.forEach(element =>
|
||||
self._scripts_menu.innerHTML += `<div class="sub-trigger">${element.name}<div class="description">${element.description}</div></div>`);
|
||||
|
||||
|
||||
self._objects_menu.innerHTML = "";
|
||||
self.objects.forEach(element =>
|
||||
self._objects_menu.innerHTML += `<div class="sub-trigger">${element.name}</div>`);
|
||||
self.objects.forEach(element => {
|
||||
self._objects_menu.innerHTML += `<div class="sub-trigger">${element.name}<div class="data-type">${element.type}</div>`;
|
||||
// Add hierarchical stuff
|
||||
self._objects_menu.innerHTML += "</div>";});
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue