feat(settings): handle warning message setting
This commit is contained in:
@@ -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',
|
||||||
|
|||||||
Reference in New Issue
Block a user