Skip to content

Commit 60849eb

Browse files
authored
Merge pull request #160 from flowforge/sidebar-link-help
Add link to sidebar & remove old order form rows
2 parents 203a782 + 66c7ee0 commit 60849eb

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

nodes/config/ui_base.html

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@
2929
.nrdb2-layout-order-editor {
3030
padding: 8px 10px;
3131
}
32+
.nrdb2-layout-helptext {
33+
padding: 0 0 9px;
34+
font-style: italic;
35+
color: #a2a2a2;
36+
font-size: 8pt;
37+
line-height: 12pt;
38+
}
3239
.nrdb2-layout-order-editor--pages {
3340
display: flex;
3441
justify-content: space-between;
@@ -439,6 +446,8 @@
439446
.appendTo(buttonGroup)
440447
RED.popover.tooltip(buttonExpand, c_('layout.expand'))
441448

449+
divTabs.append('<div class="nrdb2-layout-helptext">Here you can re-order and move your widgets, groups and pages.</div>')
450+
442451
const pages = {}
443452
const groupsByPage = {}
444453
const widgetsByGroup = {}
@@ -556,9 +565,6 @@
556565

557566
// add layout editor
558567
buildLayoutOrderEditor()
559-
560-
// placeholder message
561-
sidebar.append('<span style="padding: 9px; font-style: italic; color: #a2a2a2; font-size: 8pt;">More content will be added here in future releases</span>')
562568
}
563569
})
564570

nodes/config/ui_group.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,9 @@
4242
<button class="editor-button" id="node-config-input-size"></button>
4343
</div>
4444
<div class="form-row">
45-
<label for="node-config-input-order"><i class="fa fa-bookmark"></i> Order</label>
46-
<input type="text" id="node-config-input-order">
45+
<input style="margin:8px 0 10px 102px; width:20px;" type="checkbox" checked id="node-config-input-disp"> <label style="width:auto" for="node-config-input-disp"><span data-i18n="ui-group.display-name"></span></label>
4746
</div>
4847
<div class="form-row">
49-
<input style="margin:8px 0 10px 102px; width:20px;" type="checkbox" checked id="node-config-input-disp"> <label style="width:auto" for="node-config-input-disp"><span data-i18n="ui-group.display-name"></span></label>
48+
<button onclick="RED.sidebar.show('dashboard-2.0')" class="editor-button editor-button-small">Open Dashboard 2.0 Sidebar</button>
5049
</div>
5150
</script>

nodes/config/ui_page.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,6 @@
7373
<input type="hidden" id="node-config-input-layoutType">
7474
</div>
7575
<div class="form-row">
76-
<label for="node-config-input-layout"><i class="fa fa-bookmark"></i> Order</label>
77-
<input type="text" id="node-config-input-order">
78-
<input type="hidden" id="node-config-input-orderType">
76+
<button onclick="RED.sidebar.show('dashboard-2.0')" class="editor-button editor-button-small">Open Dashboard 2.0 Sidebar</button>
7977
</div>
8078
</script>

0 commit comments

Comments
 (0)