Fixing bugs on menu at schema
This commit is contained in:
1 parent
33055ab12b
commit
a7f5a4e663
1 file changed
+21
-1
@@ -81,8 +81,28 @@ function newUiObjectConstructor () {
|
||||
if (item.action.indexOf('Delete ') >= 0) {
|
||||
// item.action = 'Delete UI Object'
|
||||
}
|
||||
if (item.action.indexOf('Configure ') >= 0) {
|
||||
if (schemaNode.editors.config === true) {
|
||||
// item.actionFunction = 'uiObject.configEditor.activate'
|
||||
}
|
||||
}
|
||||
if (item.action.indexOf('Edit ') >= 0) {
|
||||
if (schemaNode.editors.condition === true) {
|
||||
// item.actionFunction = 'uiObject.conditionEditor.activate'
|
||||
}
|
||||
}
|
||||
if (item.action.indexOf('Edit ') >= 0) {
|
||||
if (schemaNode.editors.formula === true) {
|
||||
// item.actionFunction = 'uiObject.formulaEditor.activate'
|
||||
}
|
||||
}
|
||||
if (item.action.indexOf('Edit ') >= 0) {
|
||||
if (schemaNode.editors.code === true) {
|
||||
// item.actionFunction = 'uiObject.codeEditor.activate'
|
||||
}
|
||||
}
|
||||
if (item.actionFunction === undefined) {
|
||||
item.actionFunction = 'payload.onMenuItemClick'
|
||||
// item.actionFunction = 'payload.onMenuItemClick'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user