From 4ae07fb197a7b520636ae4395628d24a1fc2612e Mon Sep 17 00:00:00 2001 From: Sumesh Punakkal Kariyil Date: Fri, 12 Feb 2021 18:48:31 -0800 Subject: [PATCH] Changes for hiding the blank alert --- appointment-frontend/src/components/common/NoEmailAlert.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/appointment-frontend/src/components/common/NoEmailAlert.vue b/appointment-frontend/src/components/common/NoEmailAlert.vue index 937bde927..de69485a1 100644 --- a/appointment-frontend/src/components/common/NoEmailAlert.vue +++ b/appointment-frontend/src/components/common/NoEmailAlert.vue @@ -43,7 +43,10 @@ export default class NoEmailAlert extends Vue { private isSmsReminderFlagMissing:boolean = false private mounted () { - this.showAlert = !this.currentUserProfile?.email || !this.currentUserProfile?.send_email_reminders || !this.currentUserProfile?.telephone || !this.currentUserProfile?.send_sms_reminders + this.showAlert = !this.currentUserProfile?.email || !this.currentUserProfile?.send_email_reminders + if (ConfigHelper.isEmsEnabled()) { + this.showAlert = this.showAlert || !this.currentUserProfile?.telephone || !this.currentUserProfile?.send_sms_reminders + } if (!this.currentUserProfile?.email) { this.isEmailMissing = true