You've already forked AstralRinth
forked from didirus/AstralRinth
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 <jaiagr+gpg@pm.me>
This commit is contained in:
@@ -122,7 +122,7 @@ export default {
|
|||||||
},
|
},
|
||||||
currentMember: {
|
currentMember: {
|
||||||
type: Object,
|
type: Object,
|
||||||
required: true,
|
default: null,
|
||||||
},
|
},
|
||||||
isSettings: {
|
isSettings: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
|
|||||||
@@ -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 UpToDate from '~/assets/images/illustrations/up_to_date.svg?inline'
|
||||||
import NavStack from '~/components/ui/NavStack'
|
import NavStack from '~/components/ui/NavStack'
|
||||||
import NavStackItem from '~/components/ui/NavStackItem'
|
import NavStackItem from '~/components/ui/NavStackItem'
|
||||||
|
|
||||||
const NOTIFICATION_TYPES = {
|
|
||||||
team_invite: 'Team invites',
|
|
||||||
project_update: 'Project updates',
|
|
||||||
}
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'Notifications',
|
name: 'Notifications',
|
||||||
components: {
|
components: {
|
||||||
@@ -118,8 +112,6 @@ export default {
|
|||||||
UpToDate,
|
UpToDate,
|
||||||
},
|
},
|
||||||
async fetch() {
|
async fetch() {
|
||||||
this.NOTIFICATION_TYPES = NOTIFICATION_TYPES
|
|
||||||
|
|
||||||
await this.$store.dispatch('user/fetchNotifications')
|
await this.$store.dispatch('user/fetchNotifications')
|
||||||
},
|
},
|
||||||
head: {
|
head: {
|
||||||
@@ -138,6 +130,13 @@ export default {
|
|||||||
return Object.keys(obj)
|
return Object.keys(obj)
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
created() {
|
||||||
|
this.NOTIFICATION_TYPES = {
|
||||||
|
team_invite: 'Team invites',
|
||||||
|
project_update: 'Project updates',
|
||||||
|
status_update: 'Status changes',
|
||||||
|
}
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async clearNotifications() {
|
async clearNotifications() {
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user