Show subscription notifications
This commit is contained in:
parent
8a51c79a6e
commit
7751992618
1 changed files with 8 additions and 1 deletions
|
@ -42,6 +42,13 @@
|
||||||
</router-link>
|
</router-link>
|
||||||
<span>reposted your post</span>
|
<span>reposted your post</span>
|
||||||
</template>
|
</template>
|
||||||
|
<template v-else-if="notification.type === 'subscription'">
|
||||||
|
<img :src="require('@/assets/tabler/coin.svg')">
|
||||||
|
<router-link :to="{ name: 'profile', params: { profileId: notification.account.id }}">
|
||||||
|
{{ getSenderName(notification) }}
|
||||||
|
</router-link>
|
||||||
|
<span>paid for subscription</span>
|
||||||
|
</template>
|
||||||
</div>
|
</div>
|
||||||
<post
|
<post
|
||||||
v-if="notification.status"
|
v-if="notification.status"
|
||||||
|
@ -78,7 +85,7 @@
|
||||||
import { ref, onMounted } from "vue"
|
import { ref, onMounted } from "vue"
|
||||||
import { PAGE_SIZE } from "@/api/common"
|
import { PAGE_SIZE } from "@/api/common"
|
||||||
import { updateNotificationMarker } from "@/api/markers"
|
import { updateNotificationMarker } from "@/api/markers"
|
||||||
import { getNotifications } from "@/api/notifications"
|
import { getNotifications, Notification } from "@/api/notifications"
|
||||||
import Avatar from "@/components/Avatar.vue"
|
import Avatar from "@/components/Avatar.vue"
|
||||||
import Post from "@/components/Post.vue"
|
import Post from "@/components/Post.vue"
|
||||||
import Sidebar from "@/components/Sidebar.vue"
|
import Sidebar from "@/components/Sidebar.vue"
|
||||||
|
|
Loading…
Reference in a new issue