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:
@@ -578,7 +578,7 @@ function updateNfcData(data) {
|
|||||||
`;
|
`;
|
||||||
|
|
||||||
// Spoolman ID anzeigen
|
// 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)
|
else if(data.location)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user