Pass business ID to HUD when opening from portal
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
3df846a31b
commit
a2a686ae76
2 changed files with 6 additions and 1 deletions
|
|
@ -196,7 +196,7 @@
|
|||
</svg>
|
||||
Open KDS
|
||||
</button>
|
||||
<button class="action-btn" onclick="window.open('/hud/index.html', '_blank')">
|
||||
<button class="action-btn" onclick="Portal.openHUD()">
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
||||
<path d="M18 20V10M12 20V4M6 20v-6"/>
|
||||
</svg>
|
||||
|
|
|
|||
|
|
@ -167,6 +167,11 @@ const Portal = {
|
|||
this.navigate(hash);
|
||||
},
|
||||
|
||||
// Open HUD in new window with business ID
|
||||
openHUD() {
|
||||
window.open('/hud/index.html?b=' + this.config.businessId, '_blank');
|
||||
},
|
||||
|
||||
// Navigate to page
|
||||
navigate(page) {
|
||||
console.log('[Portal] Navigating to:', page);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue