From 692049a4fffc0a00dd15feaa530fa693f3686b57 Mon Sep 17 00:00:00 2001 From: Le Date: Fri, 15 Dec 2023 16:52:43 -0800 Subject: [PATCH 1/3] ofmcc-1023 - fix minor UIs and hide Messaging icon from Internal site --- frontend/src/App.vue | 2 +- frontend/src/components/TheHeader.vue | 11 +++-- .../src/components/messages/MessagesTab.vue | 3 +- frontend/src/stores/auth.js | 6 +-- frontend/src/views/MinistryLoginView.vue | 43 ++++++++----------- 5 files changed, 31 insertions(+), 34 deletions(-) diff --git a/frontend/src/App.vue b/frontend/src/App.vue index 28b95fba..37b39d04 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -12,7 +12,7 @@ - + diff --git a/frontend/src/components/TheHeader.vue b/frontend/src/components/TheHeader.vue index 7d83ef96..6df2d437 100644 --- a/frontend/src/components/TheHeader.vue +++ b/frontend/src/components/TheHeader.vue @@ -17,7 +17,7 @@
- + @@ -85,12 +85,17 @@ export default { const readActionRequiredMessagesCount = this.assistanceRequests?.filter((message) => message.status === 'Action required' && message.isRead)?.length return this.unreadMessageCount + readActionRequiredMessagesCount }, + showMessagingIcon() { + return this.isAuthenticated && this.userInfo && !this.isMinistryUser + }, }, async created() { try { await this.getUserInfo() - await this.getNotifications(this.userInfo.contactId) - await this.getAssistanceRequests(this.userInfo?.contactId) + if (this.showMessagingIcon) { + await this.getNotifications(this.userInfo?.contactId) + await this.getAssistanceRequests(this.userInfo?.contactId) + } } catch (error) { console.log(error) } diff --git a/frontend/src/components/messages/MessagesTab.vue b/frontend/src/components/messages/MessagesTab.vue index 1c29db3a..1258253d 100644 --- a/frontend/src/components/messages/MessagesTab.vue +++ b/frontend/src/components/messages/MessagesTab.vue @@ -35,7 +35,7 @@ From 614081b4b96fd226b40b7dae4f351b241cd79396 Mon Sep 17 00:00:00 2001 From: weskubo-cgi Date: Mon, 18 Dec 2023 09:46:05 -0800 Subject: [PATCH 3/3] Removed divider. --- frontend/src/views/MinistryLoginView.vue | 1 - 1 file changed, 1 deletion(-) diff --git a/frontend/src/views/MinistryLoginView.vue b/frontend/src/views/MinistryLoginView.vue index 55bec27d..dc4c863b 100644 --- a/frontend/src/views/MinistryLoginView.vue +++ b/frontend/src/views/MinistryLoginView.vue @@ -2,7 +2,6 @@ -

Ministry