From 7d383587cf7953d73cbd6191fe861b5de224e6ab Mon Sep 17 00:00:00 2001 From: karthik Date: Thu, 14 Aug 2025 13:22:03 +0530 Subject: [PATCH] fix : box disabiling according to number selection (tan,qui & for) --- .../components/touch-pad-menu/touch-pad-menu.component.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/btc-UI/src/app/components/touch-pad-menu/touch-pad-menu.component.ts b/btc-UI/src/app/components/touch-pad-menu/touch-pad-menu.component.ts index 4a4d7c3..6b88d6a 100755 --- a/btc-UI/src/app/components/touch-pad-menu/touch-pad-menu.component.ts +++ b/btc-UI/src/app/components/touch-pad-menu/touch-pad-menu.component.ts @@ -244,13 +244,17 @@ export class TouchPadMenuComponent implements OnInit, OnDestroy { get isBoxToggleDisabled(): boolean { if (!this.selectedLabel) return true; - const disallowedBoxLabels = ['WIN', 'SHP', 'THP', 'PLC', 'WSP','SHW', 'TRE', 'MJP', 'JKP']; + const disallowedBoxLabels = ['WIN', 'SHP', 'THP', 'PLC', 'WSP', 'SHW', 'TRE', 'MJP', 'JKP']; if (disallowedBoxLabels.includes(this.selectedLabel)) { return true; } if (this.selectedNumbers.includes('F')) { return true; } + // Disable Box toggle for TAN, QUI, FOR after any number is selected + if (['TAN', 'QUI', 'FOR'].includes(this.selectedLabel) && this.selectedNumbers.length > 0) { + return true; + } return false; }