fix(vue): correct computed fn
This commit is contained in:
@@ -56,10 +56,15 @@ export default {
|
||||
},
|
||||
computed: {
|
||||
...mapState({ user: 'user.data' }),
|
||||
invitationInfo: {
|
||||
usernameLink: `<a href="/profile/${this.notification.data.inviter}" target="_blank" rel="noreferrer noopener">@${this.invitingUser.auth ? this.invitingUser.auth.local.username : null}</a>`,
|
||||
partyName: `<span class="notification-bold">${this.notification.data.name}</span>`,
|
||||
},
|
||||
invitationInfo () {
|
||||
if (this.notification?.data) {
|
||||
return {
|
||||
usernameLink: `<a href="/profile/${this.notification.data.inviter}" target="_blank" rel="noreferrer noopener">@${this.invitingUser.auth ? this.invitingUser.auth.local.username : null}</a>`,
|
||||
partyName: `<span class="notification-bold">${this.notification.data.name}</span>`,
|
||||
};
|
||||
}
|
||||
return null;
|
||||
}
|
||||
},
|
||||
async mounted () {
|
||||
this.invitingUser = await this.$store.dispatch('members:fetchMember', {
|
||||
|
||||
@@ -19,7 +19,6 @@
|
||||
<delete-task-confirm-modal v-if="isUserLoaded" />
|
||||
<template v-if="isUserLoaded">
|
||||
<privacy-banner />
|
||||
<chat-banner />
|
||||
<damage-paused-banner />
|
||||
<gems-promo-banner />
|
||||
<gift-promo-banner />
|
||||
|
||||
Reference in New Issue
Block a user