mirror of
https://github.com/kossakovsky/n8n-install.git
synced 2026-03-07 14:23:08 +00:00
feat(welcome): make service titles clickable to open docs
This commit is contained in:
@@ -642,7 +642,18 @@
|
||||
|
||||
const title = document.createElement('h3');
|
||||
title.className = 'font-semibold text-white';
|
||||
title.textContent = metadata.name;
|
||||
|
||||
if (metadata.docsUrl) {
|
||||
const titleLink = document.createElement('a');
|
||||
titleLink.href = metadata.docsUrl;
|
||||
titleLink.target = '_blank';
|
||||
titleLink.rel = 'noopener';
|
||||
titleLink.className = 'hover:text-brand transition-colors';
|
||||
titleLink.textContent = metadata.name;
|
||||
title.appendChild(titleLink);
|
||||
} else {
|
||||
title.textContent = metadata.name;
|
||||
}
|
||||
|
||||
const desc = document.createElement('p');
|
||||
desc.className = 'text-sm text-gray-500 mb-2';
|
||||
|
||||
Reference in New Issue
Block a user