diff --git a/src/app/tab1/tab1.page.ts b/src/app/tab1/tab1.page.ts index 5e8ac55..7c1c00e 100644 --- a/src/app/tab1/tab1.page.ts +++ b/src/app/tab1/tab1.page.ts @@ -382,6 +382,11 @@ export class Tab1Page { return; } + if (!this.settings()?.showAlert) { + this.removeUmpiresFromCourt(courtNo); + return; + } + const alert = await this.alertController.create({ header: `Pálya ${courtNo}`, subHeader: 'Biztos leveszed őket pályáról?', @@ -428,6 +433,11 @@ export class Tab1Page { return; } + if (!this.settings()?.showAlert) { + this.addUmpiresToCourt(courtNo, umpire, serviceJudge); + return; + } + const alert = await this.alertController.create({ header: `Pálya ${courtNo}`, cssClass: 'wide',