Commit c677c922 authored by Jörg Richter's avatar Jörg Richter

Add diagnosis message

See dmx-platform/dmx-platform#295
parent 903c1b9b
Pipeline #8125 passed with stage
in 2 seconds
......@@ -359,7 +359,11 @@ function contextMenus (contextCommands) {
const arg = FUN[kind].handlerArg(id, cmd)
const command = {
content: cmd.label,
select: ele => cmd.handler(arg),
select: ele => {
console.log('commands', event)
event && event.preventDefault()
cmd.handler(arg)
},
// disable command in face of a multi selection when the command does not support multi
disabled: !cmd.multi && FUN[kind].isSelected(id) && isMultiSelection()
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment