Added Code window grabber

This commit is contained in:
NWalker4483 2021-06-03 03:08:11 -04:00
parent 1522aff74a
commit df25ec95ea
1 changed files with 12 additions and 7 deletions

View File

@ -33,6 +33,7 @@ export default function Editor(
this._state = {
isOpen: undefined,
isEnabled: undefined,
};
this._init();
@ -50,15 +51,19 @@ export default function Editor(
if (context.newSelection[0] && self._parent){
if (context.newSelection[0].type == "bpmn:ScriptTask"){
domClasses(self._parent).add('enabled');
document.getElementById("cam-script-val");
} else {
self._state.isEnabled = true;
// grab script properties window
self._codestore = document.getElementById("cam-script-val");
console.log(self._codestore);
return;
}}
domClasses(self._parent).remove('enabled');
self._state.isEnabled = false;
if (self.isOpen()){
self.close();
}
}
}
});
}
Editor.$inject = [