Skip to content
This repository was archived by the owner on Dec 17, 2024. It is now read-only.

Commit bbf0a36

Browse files
committed
specify that edit, new, and compose commands require a UI
Fixes #896
1 parent 0eaa4b4 commit bbf0a36

File tree

1 file changed

+3
-3
lines changed
  • app/plugins/modules/editor/lib

1 file changed

+3
-3
lines changed

app/plugins/modules/editor/lib/edit.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -759,12 +759,12 @@ module.exports = (commandTree, prequire) => {
759759
const wsk = prequire('/ui/commands/openwhisk-core')
760760

761761
// command registration: edit existing action
762-
commandTree.listen('/editor/edit', edit(wsk, prequire), { usage: usage.edit })
762+
commandTree.listen('/editor/edit', edit(wsk, prequire), { usage: usage.edit, needsUI: true })
763763

764764
// command registration: create new action
765-
commandTree.listen('/editor/new', newAction({wsk, prequire}), { usage: usage.new })
765+
commandTree.listen('/editor/new', newAction({wsk, prequire}), { usage: usage.new, needsUI: true })
766766

767767
// command registration: create new app/composition
768768
commandTree.listen('/editor/compose', newAction(compositionOptions({ wsk, prequire, op: 'compose'})),
769-
{ usage: usage.compose })
769+
{ usage: usage.compose, needsUI: true })
770770
}

0 commit comments

Comments
 (0)