fix(fusion_plating_shopfloor): scan buttons — single icon + clearer labels

The QrScanner component renders its own fa-qrcode icon; the board passed
it label '📷 Camera', so the camera button showed two icons (QR + camera
emoji). Drop the emoji → one icon.

Also clarify the two scan paths (they do different things):
- "Scan QR"  = camera scan of the printed job sticker (primary path)
- "Enter Code" = manual / hardware scanner-gun text drawer (no camera)
Reordered so the camera (sticker) scan reads first. Other QrScanner call
sites already pass plain/no labels — this was the only double-icon.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
gsinghpal
2026-06-02 01:00:06 -04:00
parent a092c385ea
commit 8a1a09b150

View File

@@ -23,13 +23,18 @@
<button t-att-class="modeClass('manager')"
t-on-click="() => this.setMode('manager')">Manager</button>
</div>
<!-- Text/wedge scan drawer toggle. Camera path
is the QrScanner inline below — it
opens its own modal + decoder. -->
<!-- "Scan QR" = the QrScanner camera path (the
primary way to scan a printed job sticker).
The component renders its own fa-qrcode
icon, so the label must be plain text — an
emoji here would double up the icon.
"Enter Code" = the manual / hardware-scanner-
gun text drawer (a wedge gun types the code;
no camera). -->
<QrScanner cssClass="'toolbar-btn'" label="'Scan QR'"/>
<button class="toolbar-btn"
t-att-class="state.showScan ? 'toolbar-btn active' : 'toolbar-btn'"
t-on-click="toggleScan">⌨️ Scan Code</button>
<QrScanner cssClass="'toolbar-btn'" label="'📷 Camera'"/>
t-on-click="toggleScan">⌨️ Enter Code</button>
<button class="toolbar-btn handoff" t-on-click="onHandOff">🔓 Hand Off</button>
</div>
</div>