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 @@