Skip to content

Commit 1f3438e

Browse files
committed
UI Tweak: Reorder / rename controls in the workflow "Job Node" dialog to better match the event editor.
1 parent 6818146 commit 1f3438e

2 files changed

Lines changed: 20 additions & 20 deletions

File tree

htdocs/js/pages/Workflows.class.js

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1674,18 +1674,6 @@ Page.Workflows = class Workflows extends Page.Events {
16741674

16751675
var html = '<div class="dialog_box_content scroll maximize">';
16761676

1677-
// plugin
1678-
html += this.getFormRow({
1679-
id: 'd_wfdj_plugin',
1680-
content: this.getFormMenuSingle({
1681-
id: 'fe_wfdj_plugin',
1682-
options: app.plugins.filter( function(plugin) { return plugin.type == 'event'; } ),
1683-
value: node.data.plugin || '',
1684-
default_icon: 'power-plug-outline'
1685-
// 'data-shrinkwrap': 1
1686-
})
1687-
});
1688-
16891677
// title
16901678
html += this.getFormRow({
16911679
id: 'd_wfdj_title',
@@ -1709,6 +1697,18 @@ Page.Workflows = class Workflows extends Page.Events {
17091697
})
17101698
});
17111699

1700+
// tags
1701+
html += this.getFormRow({
1702+
id: 'd_wfdj_tags',
1703+
content: this.getFormMenuMulti({
1704+
id: 'fe_wfdj_tags',
1705+
options: app.tags,
1706+
values: node.data.tags || [],
1707+
default_icon: 'tag-outline',
1708+
// 'data-shrinkwrap': 1
1709+
})
1710+
});
1711+
17121712
// targets
17131713
html += this.getFormRow({
17141714
id: 'd_wfdj_targets',
@@ -1751,14 +1751,14 @@ Page.Workflows = class Workflows extends Page.Events {
17511751
})
17521752
});
17531753

1754-
// tags
1754+
// plugin
17551755
html += this.getFormRow({
1756-
id: 'd_wfdj_tags',
1757-
content: this.getFormMenuMulti({
1758-
id: 'fe_wfdj_tags',
1759-
options: app.tags,
1760-
values: node.data.tags || [],
1761-
default_icon: 'tag-outline',
1756+
id: 'd_wfdj_plugin',
1757+
content: this.getFormMenuSingle({
1758+
id: 'fe_wfdj_plugin',
1759+
options: app.plugins.filter( function(plugin) { return plugin.type == 'event'; } ),
1760+
value: node.data.plugin || '',
1761+
default_icon: 'power-plug-outline'
17621762
// 'data-shrinkwrap': 1
17631763
})
17641764
});

internal/ui.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@
515515
"placeholder": "Select Plugin for node..."
516516
},
517517
"d_wfdj_title": {
518-
"label": "Custom Title:",
518+
"label": "Title:",
519519
"caption": "Optionally customize the title for the node (defaults to the Plugin name)."
520520
},
521521
"d_wfdj_cat": {

0 commit comments

Comments
 (0)