feat(settings): handle warning message setting

This commit is contained in:
2026-06-06 19:54:44 +02:00
parent abf0cd2359
commit 33d635839f
+10
View File
@@ -382,6 +382,11 @@ export class Tab1Page {
return; return;
} }
if (!this.settings()?.showAlert) {
this.removeUmpiresFromCourt(courtNo);
return;
}
const alert = await this.alertController.create({ const alert = await this.alertController.create({
header: `Pálya ${courtNo}`, header: `Pálya ${courtNo}`,
subHeader: 'Biztos leveszed őket pályáról?', subHeader: 'Biztos leveszed őket pályáról?',
@@ -428,6 +433,11 @@ export class Tab1Page {
return; return;
} }
if (!this.settings()?.showAlert) {
this.addUmpiresToCourt(courtNo, umpire, serviceJudge);
return;
}
const alert = await this.alertController.create({ const alert = await this.alertController.create({
header: `Pálya ${courtNo}`, header: `Pálya ${courtNo}`,
cssClass: 'wide', cssClass: 'wide',