From 033019eccea91344b3cb58e3d5d55236947422c3 Mon Sep 17 00:00:00 2001 From: Philipp Bachmann Date: Fri, 17 Apr 2020 20:52:05 +0200 Subject: [PATCH] Added missing backdropDismiss to AlertControllers. --- src/app/core/menu/menu.component.ts | 5 +++++ src/app/modules/main/components/login/login.ts | 11 ++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/src/app/core/menu/menu.component.ts b/src/app/core/menu/menu.component.ts index d40292c..d5c340f 100644 --- a/src/app/core/menu/menu.component.ts +++ b/src/app/core/menu/menu.component.ts @@ -41,6 +41,7 @@ export class MenuComponent implements OnInit { const prompt = await this.alertCtrl.create({ header: i18n.changePassword.title, message: i18n.changePassword.message, + backdropDismiss: false, inputs: [ { name: 'passwordOld', @@ -74,6 +75,7 @@ export class MenuComponent implements OnInit { const alert = await this.alertCtrl.create({ header: i18n.changePassword.alertTitle, subHeader: i18n.changePassword.alertSubTitle, + backdropDismiss: false, buttons: ['OK'] }); await alert.present(); @@ -104,6 +106,7 @@ export class MenuComponent implements OnInit { const prompt = await this.alertCtrl.create({ header: i18n.invite.title, message: i18n.invite.message, + backdropDismiss: false, inputs: [ { name: 'email', @@ -123,6 +126,7 @@ export class MenuComponent implements OnInit { const alert = await this.alertCtrl.create({ header: i18n.forgetPassword.alertInvalidTitle, subHeader: i18n.forgetPassword.alertInvalid, + backdropDismiss: false, buttons: ['OK'] }); await alert.present(); @@ -135,6 +139,7 @@ export class MenuComponent implements OnInit { header: i18n.invite.alertTitle, subHeader: i18n.invite.alertSubTitle.replace('%email%', data.email), translucent: true, + backdropDismiss: false, buttons: ['OK'] }); await alert.present(); diff --git a/src/app/modules/main/components/login/login.ts b/src/app/modules/main/components/login/login.ts index d1325f9..470c34d 100644 --- a/src/app/modules/main/components/login/login.ts +++ b/src/app/modules/main/components/login/login.ts @@ -122,6 +122,7 @@ export class LoginPage { const prompt = await this.alertCtrl.create({ header: i18n.forgetPassword.title, message: i18n.forgetPassword.message, + backdropDismiss: false, inputs: [ { name: 'email', @@ -136,11 +137,12 @@ export class LoginPage { }, { text: i18n.forgetPassword.send, - handler: async data => { + handler: async data => { if (this.userService.isMailInvalid(data.email)) { const alert = await this.alertCtrl.create({ header: i18n.forgetPassword.alertInvalidTitle, subHeader: i18n.forgetPassword.alertInvalid, + backdropDismiss: false, buttons: ['OK'] }); await alert.present(); @@ -153,6 +155,7 @@ export class LoginPage { const alert = await this.alertCtrl.create({ header: i18n.forgetPassword.alertTitle, subHeader: i18n.forgetPassword.alertSubTitle, + backdropDismiss: false, buttons: ['OK'] }); await alert.present(); @@ -162,6 +165,7 @@ export class LoginPage { const alert = await this.alertCtrl.create({ header: 'Error', subHeader: (error.status === 0) ? 'No Connection to the Backend!' : error.error, + backdropDismiss: false, buttons: ['OK'] }); await alert.present(); @@ -180,6 +184,7 @@ export class LoginPage { const prompt = await this.alertCtrl.create({ header: i18n.signup.title, message: i18n.signup.message, + backdropDismiss: false, inputs: [ { name: 'email', @@ -209,6 +214,7 @@ export class LoginPage { const invalidEmailAlert = await this.alertCtrl.create({ header: i18n.forgetPassword.alertInvalidTitle, subHeader: i18n.forgetPassword.alertInvalid, + backdropDismiss: false, buttons: ['OK'] }); await invalidEmailAlert.present(); @@ -221,6 +227,7 @@ export class LoginPage { const invalidPasswordAlert = await this.alertCtrl.create({ header: i18n.signup.alertInvalidPasswordTitle, subHeader: i18n.signup.alertInvalidPassword, + backdropDismiss: false, buttons: ['OK'] }); await invalidPasswordAlert.present(); @@ -233,6 +240,7 @@ export class LoginPage { const infoDialog = await this.alertCtrl.create({ header: i18n.signup.alertTitle, subHeader: i18n.signup.alertSubTitle, + backdropDismiss: false, buttons: ['OK'] }); await infoDialog.present(); @@ -242,6 +250,7 @@ export class LoginPage { const errorDialog = await this.alertCtrl.create({ header: 'Error', subHeader: (error.status === 0) ? 'No Connection to the Backend!' : error.error, + backdropDismiss: false, buttons: ['OK'] }); await errorDialog.present();