mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Hide palette until nodes loaded
This commit is contained in:
parent
f666b0e6f9
commit
4dce130acb
@ -72,6 +72,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div id="main-container" class="sidebar-closed">
|
<div id="main-container" class="sidebar-closed">
|
||||||
<div id="palette">
|
<div id="palette">
|
||||||
|
<i class="palette-spinner spinner"></i>
|
||||||
<div class="palette-scroll">
|
<div class="palette-scroll">
|
||||||
<div class="palette-category">
|
<div class="palette-category">
|
||||||
<div class="palette-header"><i class="expanded icon-chevron-down"></i><span>inputs</span></div>
|
<div class="palette-header"><i class="expanded icon-chevron-down"></i><span>inputs</span></div>
|
||||||
|
@ -142,6 +142,9 @@ var RED = function() {
|
|||||||
function loadNodes() {
|
function loadNodes() {
|
||||||
$.get('nodes', function(data) {
|
$.get('nodes', function(data) {
|
||||||
$("body").append(data);
|
$("body").append(data);
|
||||||
|
$(".palette-spinner").hide();
|
||||||
|
$(".palette-scroll").show();
|
||||||
|
$("#palette-search").show();
|
||||||
loadFlows();
|
loadFlows();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -108,6 +108,7 @@ a.brand img {
|
|||||||
user-select: none;
|
user-select: none;
|
||||||
}
|
}
|
||||||
.palette-scroll {
|
.palette-scroll {
|
||||||
|
display: none;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
left:0;
|
left:0;
|
||||||
@ -118,8 +119,12 @@ a.brand img {
|
|||||||
box-sizing:border-box;
|
box-sizing:border-box;
|
||||||
-moz-box-sizing: border-box;
|
-moz-box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
.palette-spinner {
|
||||||
|
padding-top: 40px;
|
||||||
|
}
|
||||||
#palette-search {
|
#palette-search {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
display: none;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
left:0;
|
left:0;
|
||||||
right:0;
|
right:0;
|
||||||
|
Loading…
Reference in New Issue
Block a user