mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Merge pull request #2846 from node-red/show-first-sidebar
Ensure the first sidebar tab is shown when editor loads
This commit is contained in:
commit
f770786b89
@ -516,6 +516,9 @@ var RED = (function() {
|
|||||||
|
|
||||||
$(".red-ui-header-toolbar").show();
|
$(".red-ui-header-toolbar").show();
|
||||||
|
|
||||||
|
|
||||||
|
RED.sidebar.show(":first");
|
||||||
|
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
loader.end();
|
loader.end();
|
||||||
},100);
|
},100);
|
||||||
|
@ -195,6 +195,9 @@ RED.sidebar = (function() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function showSidebar(id) {
|
function showSidebar(id) {
|
||||||
|
if (id === ":first") {
|
||||||
|
id = RED.settings.get("editor.sidebar.order",["info", "help", "version-control", "debug"])[0]
|
||||||
|
}
|
||||||
if (id) {
|
if (id) {
|
||||||
if (!containsTab(id)) {
|
if (!containsTab(id)) {
|
||||||
sidebar_tabs.addTab(knownTabs[id]);
|
sidebar_tabs.addTab(knownTabs[id]);
|
||||||
|
Loading…
Reference in New Issue
Block a user