fix : shash enter will auto hide accordingly

This commit is contained in:
karthik 2025-08-14 15:52:32 +05:30
parent 7d383587cf
commit 210c2baf4a

View File

@ -218,8 +218,13 @@ export class TouchPadMenuComponent implements OnInit, OnDestroy {
return false;
}
const specialLabels = ['FOR', 'QUI', 'TAN', 'EXA', 'TRE', 'MJP', 'JKP', '.'];
return specialLabels.includes(label);
if (this.multiLegLabels.includes(label)) {
const maxLegs = this.getMaxLegs(this.currentPool || '');
// Hide Shash Enter if on the final leg
return this.multiLegStage < maxLegs - 1;
}
return specialLabels.includes(label);
}
get isShashEnterDisabled(): boolean {
if (this.selectedLabel === 'TAN') {