Support "move" notification type

This commit is contained in:
silverpill 2022-10-22 19:43:20 +00:00
parent 163ef70582
commit 6e617c19d3
2 changed files with 3 additions and 0 deletions

View file

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="feather feather-truck"><rect x="1" y="3" width="15" height="13"></rect><polygon points="16 8 20 8 23 11 23 16 16 16 16 8"></polygon><circle cx="5.5" cy="18.5" r="2.5"></circle><circle cx="18.5" cy="18.5" r="2.5"></circle></svg>

After

Width:  |  Height:  |  Size: 417 B

View file

@ -16,6 +16,7 @@
v-else-if="notification.type === 'subscription' || notification.type === 'subscription_expiration'" v-else-if="notification.type === 'subscription' || notification.type === 'subscription_expiration'"
:src="require('@/assets/tabler/coin.svg')" :src="require('@/assets/tabler/coin.svg')"
> >
<img v-else-if="notification.type === 'move'" :src="require('@/assets/feather/truck.svg')">
<router-link <router-link
:title="getSenderInfo(notification)" :title="getSenderInfo(notification)"
:to="{ name: 'profile', params: { profileId: notification.account.id } }" :to="{ name: 'profile', params: { profileId: notification.account.id } }"
@ -29,6 +30,7 @@
<span v-else-if="notification.type === 'reblog'">reposted your post</span> <span v-else-if="notification.type === 'reblog'">reposted your post</span>
<span v-else-if="notification.type === 'subscription'">paid for subscription</span> <span v-else-if="notification.type === 'subscription'">paid for subscription</span>
<span v-else-if="notification.type === 'subscription_expiration'">subscription expired</span> <span v-else-if="notification.type === 'subscription_expiration'">subscription expired</span>
<span v-else-if="notification.type === 'move'">moved to a new instance</span>
</div> </div>
<post <post
v-if="notification.status" v-if="notification.status"