mirror of
https://github.com/node-red/node-red.git
synced 2025-12-27 15:34:26 +01:00
Fix the node docs icon for long catalog loading
This commit is contained in:
@@ -336,6 +336,16 @@ RED.palette.editor = (function() {
|
||||
|
||||
const moduleInfo = nodeEntries[module].info;
|
||||
const nodeEntry = nodeEntries[module].elements;
|
||||
|
||||
if (!moduleInfo.url) {
|
||||
if (loadedIndex[module] && loadedIndex[module].url) {
|
||||
// Add the link to the node documentation if the catalog contains it
|
||||
moduleInfo.url = loadedIndex[module].url;
|
||||
const titleRow = $(nodeEntry.container).find("div.red-ui-palette-module-header > div.red-ui-palette-module-meta.red-ui-palette-module-name");
|
||||
$('<a target="_blank" class="red-ui-palette-module-link"><i class="fa fa-external-link"></i></a>').attr('href', moduleInfo.url).appendTo(titleRow);
|
||||
}
|
||||
}
|
||||
|
||||
if (nodeEntry) {
|
||||
const setCount = [];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user