Adds a link to the spool in spoolman when reading a spool tag

Adds a link to the website that lets the user directly jump to the spool in spoolman that is currently scanned.
This commit is contained in:
Jan Philipp Ecker
2025-08-08 18:14:26 +02:00
parent 4706152022
commit 5fa93f2695

View File

@@ -578,7 +578,7 @@ function updateNfcData(data) {
`;
// Spoolman ID anzeigen
html += `<p><strong>Spoolman ID:</strong> ${data.sm_id || 'No Spoolman ID'}</p>`;
html += `<p><strong>Spoolman ID:</strong> ${data.sm_id} (<a href="${spoolmanUrl}/spool/show/${data.sm_id}">Open in Spoolman</a>)</p>`;
}
else if(data.location)
{