Pass business ID to HUD when opening from portal

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
John Mizerek 2026-01-19 20:41:33 -08:00
parent 3df846a31b
commit a2a686ae76
2 changed files with 6 additions and 1 deletions

View file

@ -196,7 +196,7 @@
</svg> </svg>
Open KDS Open KDS
</button> </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"> <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M18 20V10M12 20V4M6 20v-6"/> <path d="M18 20V10M12 20V4M6 20v-6"/>
</svg> </svg>

View file

@ -167,6 +167,11 @@ const Portal = {
this.navigate(hash); 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 to page
navigate(page) { navigate(page) {
console.log('[Portal] Navigating to:', page); console.log('[Portal] Navigating to:', page);