Skip to content

Commit

Permalink
feat(ui): include ScriptRunners on plugins page
Browse files Browse the repository at this point in the history
closes #3347
  • Loading branch information
brian-mulier-p committed Mar 26, 2024
1 parent a963e3b commit eb411aa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ui/src/components/plugins/Toc.vue
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
},
group(plugin) {
return Object.keys(plugin)
.filter(r => r === "tasks" || r === "triggers" || r === "conditions")
.filter(r => r === "tasks" || r === "triggers" || r === "conditions" || r === "scriptRunners")
.flatMap(type => {
return (plugin[type] === undefined ? {} : plugin[type])
.map(task => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,11 @@ public Map<String, PluginIcon> icons() {
.concat(
plugin.getTasks().stream(),
Stream.concat(
plugin.getTriggers().stream(),
plugin.getConditions().stream()
Stream.concat(
plugin.getTriggers().stream(),
plugin.getConditions().stream()
),
plugin.getScriptRunner().stream()
)
)
.map(e -> new AbstractMap.SimpleEntry<>(
Expand Down

0 comments on commit eb411aa

Please sign in to comment.