From 0c5a48e8afc0f9741a3a22d9bd811edc4a8d2b8a Mon Sep 17 00:00:00 2001 From: Sibin Sabu Date: Mon, 18 Aug 2025 13:22:30 +0530 Subject: [PATCH] fixed : dynamic btid in shared display --- .../components/shared-display/shared-display.component.html | 2 +- .../components/shared-display/shared-display.component.ts | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/btc-UI/src/app/components/shared-display/shared-display.component.html b/btc-UI/src/app/components/shared-display/shared-display.component.html index ed88d22..507b4d2 100644 --- a/btc-UI/src/app/components/shared-display/shared-display.component.html +++ b/btc-UI/src/app/components/shared-display/shared-display.component.html @@ -1,6 +1,6 @@
-
B.T.No: 1111
+
B.T.No: {{ btid }}
Venue: {{ selectedVenue }}
Race No: {{ selectedRace }}
diff --git a/btc-UI/src/app/components/shared-display/shared-display.component.ts b/btc-UI/src/app/components/shared-display/shared-display.component.ts index 87cca14..88a0ca6 100644 --- a/btc-UI/src/app/components/shared-display/shared-display.component.ts +++ b/btc-UI/src/app/components/shared-display/shared-display.component.ts @@ -13,6 +13,7 @@ interface SharedData { salesTotal: number; receiveTotal: number; totalClicks: number; + } @Component({ @@ -31,6 +32,8 @@ export class SharedDisplayComponent implements OnInit { { col1: 'Payout', col2: 0, col3: 0 }, { col1: 'Receive', col2: 0, col3: 0 }, ]; + + btid: string | null = null; filledRows: SelectionData[] = Array.from({ length: 5 }, () => ({ label: '', numbers: [], @@ -49,7 +52,7 @@ export class SharedDisplayComponent implements OnInit { ngOnInit(): void { console.log('[SHARED DISPLAY] Initializing, electronAPI available:', !!window.electronAPI); - + this.btid = localStorage.getItem('btid'); this.sharedStateService.sharedData$.subscribe((data) => { console.log('[SHARED DISPLAY] Received shared data:', data); if (!data) return;