1
0
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:
Nick O'Leary 2014-03-17 16:26:15 +00:00
parent f666b0e6f9
commit 4dce130acb
3 changed files with 9 additions and 0 deletions

View File

@ -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>

View File

@ -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();
}); });
} }

View File

@ -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;