From 233109d23ea72f65aa252f76f473d9307c959147 Mon Sep 17 00:00:00 2001 From: Prospector <6166773+Prospector@users.noreply.github.com> Date: Wed, 11 Jan 2023 12:57:06 -0800 Subject: [PATCH] Fix a couple of misc. page errors I noticed (#900) * Fix for a couple of random bugs I noticed * Add project status update to NOTIFICATION_TYPES * Update wording Co-authored-by: Jai A --- components/ui/ProjectPublishingChecklist.vue | 2 +- pages/notifications.vue | 15 +++++++-------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/components/ui/ProjectPublishingChecklist.vue b/components/ui/ProjectPublishingChecklist.vue index 4851de10d..037d7d99c 100644 --- a/components/ui/ProjectPublishingChecklist.vue +++ b/components/ui/ProjectPublishingChecklist.vue @@ -122,7 +122,7 @@ export default { }, currentMember: { type: Object, - required: true, + default: null, }, isSettings: { type: Boolean, diff --git a/pages/notifications.vue b/pages/notifications.vue index 410c54337..85e1fccca 100644 --- a/pages/notifications.vue +++ b/pages/notifications.vue @@ -101,12 +101,6 @@ import CalendarIcon from '~/assets/images/utils/calendar.svg?inline' import UpToDate from '~/assets/images/illustrations/up_to_date.svg?inline' import NavStack from '~/components/ui/NavStack' import NavStackItem from '~/components/ui/NavStackItem' - -const NOTIFICATION_TYPES = { - team_invite: 'Team invites', - project_update: 'Project updates', -} - export default { name: 'Notifications', components: { @@ -118,8 +112,6 @@ export default { UpToDate, }, async fetch() { - this.NOTIFICATION_TYPES = NOTIFICATION_TYPES - await this.$store.dispatch('user/fetchNotifications') }, head: { @@ -138,6 +130,13 @@ export default { return Object.keys(obj) }, }, + created() { + this.NOTIFICATION_TYPES = { + team_invite: 'Team invites', + project_update: 'Project updates', + status_update: 'Status changes', + } + }, methods: { async clearNotifications() { try {