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:
@@ -23,13 +23,18 @@
|
|||||||
<button t-att-class="modeClass('manager')"
|
<button t-att-class="modeClass('manager')"
|
||||||
t-on-click="() => this.setMode('manager')">Manager</button>
|
t-on-click="() => this.setMode('manager')">Manager</button>
|
||||||
</div>
|
</div>
|
||||||
<!-- Text/wedge scan drawer toggle. Camera path
|
<!-- "Scan QR" = the QrScanner camera path (the
|
||||||
is the QrScanner inline below — it
|
primary way to scan a printed job sticker).
|
||||||
opens its own modal + decoder. -->
|
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"
|
<button class="toolbar-btn"
|
||||||
t-att-class="state.showScan ? 'toolbar-btn active' : 'toolbar-btn'"
|
t-att-class="state.showScan ? 'toolbar-btn active' : 'toolbar-btn'"
|
||||||
t-on-click="toggleScan">⌨️ Scan Code</button>
|
t-on-click="toggleScan">⌨️ Enter Code</button>
|
||||||
<QrScanner cssClass="'toolbar-btn'" label="'📷 Camera'"/>
|
|
||||||
<button class="toolbar-btn handoff" t-on-click="onHandOff">🔓 Hand Off</button>
|
<button class="toolbar-btn handoff" t-on-click="onHandOff">🔓 Hand Off</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user