mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Only reload catalogue when requested
This commit is contained in:
parent
cdc7ab562a
commit
b7dbfd5cfc
@ -340,6 +340,7 @@ RED.palette.editor = (function() {
|
||||
}
|
||||
|
||||
function initInstallTab() {
|
||||
if (loadedList.length === 0) {
|
||||
loadedList = [];
|
||||
packageList.editableList('empty');
|
||||
$(".palette-module-shade-status").html("Loading catalogues...");
|
||||
@ -357,6 +358,7 @@ RED.palette.editor = (function() {
|
||||
})
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function refreshFilteredItems() {
|
||||
packageList.editableList('empty');
|
||||
@ -571,6 +573,9 @@ RED.palette.editor = (function() {
|
||||
searchInput.searchBox('count',filteredList.length+" / "+loadedList.length);
|
||||
} else {
|
||||
searchInput.searchBox('count',loadedList.length);
|
||||
if (searchTerm.length === 0) {
|
||||
packageList.editableList('empty');
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
@ -608,6 +613,7 @@ RED.palette.editor = (function() {
|
||||
var refreshButton = $('<a href="#" class="sidebar-header-button"><i class="fa fa-refresh"></i></a>').appendTo(refreshSpan);
|
||||
refreshButton.click(function(e) {
|
||||
e.preventDefault();
|
||||
loadedList = [];
|
||||
initInstallTab();
|
||||
})
|
||||
|
||||
|
@ -83,12 +83,14 @@
|
||||
@include workspace-button;
|
||||
color: $workspace-button-color-selected;
|
||||
background:$workspace-button-background-active;
|
||||
|
||||
transition: all 0.1s ease-in-out;
|
||||
margin-bottom: 1px;
|
||||
&.selected:not(.disabled) {
|
||||
color: $workspace-button-color;
|
||||
background: $workspace-button-background;
|
||||
border-bottom-width: 2px;
|
||||
border-bottom-color: $form-input-border-selected-color;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user