diff --git a/public/app.js b/public/app.js index bb2b26e..1660e51 100644 --- a/public/app.js +++ b/public/app.js @@ -2630,8 +2630,11 @@ function drawnSlots(p) { // What's in each slot, as last reported, under the drawing. function loadedHtml(p) { if (!p.loaded) return p.id ? '

Nothing reported yet — “Test & sync” to read it.

' : ''; - // The tracked spool in that slot names the colour; otherwise the nearest Bambu colour. + // A tagged spool is Bambu's, so its colour has a name: from the tracked spool, + // or the Bambu colour it matches. An untagged one could be any brand, so it + // gets the colour the printer reports and nothing more. const colourName = (t) => { + if (!t.tagged) return t.colour || ''; const s = spools.find((x) => x.ams_slot === `${p.serial}/${t.unit == null ? 'ext' : t.unit}/${t.slot == null ? 0 : t.slot}`); return (s && s.colour) || (t.colour ? paletteName(t.colour, t.material) : '') || ''; };