From 6c487358542b467887fb3e1d5e6b9eb72e8380a0 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Tue, 10 Sep 2019 11:49:59 +0100 Subject: [PATCH] Move flow-status button to footer for consistency --- .../editor-client/src/js/ui/workspaces.js | 29 ++++++++++--------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/workspaces.js b/packages/node_modules/@node-red/editor-client/src/js/ui/workspaces.js index c3943b0d5..bb64f848a 100644 --- a/packages/node_modules/@node-red/editor-client/src/js/ui/workspaces.js +++ b/packages/node_modules/@node-red/editor-client/src/js/ui/workspaces.js @@ -157,17 +157,27 @@ RED.workspaces = (function() { tabflowEditor.resize(); }, open: function(tray) { + var trayFooter = tray.find(".red-ui-tray-footer"); var trayBody = tray.find('.red-ui-tray-body'); + var trayFooterLeft = $('').appendTo(trayFooter) + var dialogForm = $('
').appendTo(trayBody); $('
'+ ''+ ''+ '
').appendTo(dialogForm); - $('
'+ - ''+ - ''+ - '
').appendTo(dialogForm); + + if (!workspace.hasOwnProperty("disabled")) { + workspace.disabled = false; + } + + $('').prop("checked",workspace.disabled).appendTo(trayFooterLeft).toggleButton({ + enabledIcon: "fa-circle-thin", + disabledIcon: "fa-ban", + invertState: true + }) + var row = $('
'+ ''+ @@ -196,16 +206,7 @@ RED.workspaces = (function() { }) }); - if (workspace.hasOwnProperty("disabled")) { - $("#node-input-disabled").prop("checked",workspace.disabled); - } else { - workspace.disabled = false; - } - $("#node-input-disabled").toggleButton({ - enabledIcon: "fa-circle-thin", - disabledIcon: "fa-ban", - invertState: true - }) + $('').prependTo(dialogForm); dialogForm.on("submit", function(e) { e.preventDefault();});