Merge pull request #5237 from GogoVega/fix-node-docs-icon

Fix node documentation icon for long catalog loading
This commit is contained in:
Nick O'Leary
2025-08-28 13:53:02 +01:00
committed by GitHub

View File

@@ -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 = [];