fix : field logic added not completed (enabled before number after disabled)
This commit is contained in:
parent
b0a31ec17a
commit
b6f9827c83
@ -231,9 +231,15 @@ export class TouchPadMenuComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 🔘 FIELD Modal Logic
|
// 🔘 FIELD Modal Logic
|
||||||
canUseField(): boolean {
|
canUseField(): boolean {
|
||||||
return ['WIN', 'SHP', 'THP', 'PLC', 'SHW'].includes(this.selectedLabel || '');
|
const allowedLabels = ['WIN', 'SHP', 'THP', 'PLC', 'SHW'];
|
||||||
}
|
return (
|
||||||
|
this.selectedLabel !== null &&
|
||||||
|
allowedLabels.includes(this.selectedLabel) &&
|
||||||
|
this.selectedNumbers.length === 0
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
openFieldModal() {
|
openFieldModal() {
|
||||||
this.fieldModalOpen = true;
|
this.fieldModalOpen = true;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user