aboutsummaryrefslogtreecommitdiff
path: root/src/components/notification/notification.vue
diff options
context:
space:
mode:
authorHJ <30-hj@users.noreply.git.pleroma.social>2020-01-03 10:16:42 +0000
committerHJ <30-hj@users.noreply.git.pleroma.social>2020-01-03 10:16:42 +0000
commitad97e03b59783d655c7d414e27b0bce41a6a4ee6 (patch)
tree817b578e53b884c4b5facd63c166b522f59a8978 /src/components/notification/notification.vue
parent1a82a00a2b45041c35b72ab16ee34c120341b652 (diff)
parent215662afdee3935f66e5fbd73260e2039f5216de (diff)
Merge branch 'fix-move-type-notification' into 'develop'
Fix for move type notification See merge request pleroma/pleroma-fe!1026
Diffstat (limited to 'src/components/notification/notification.vue')
-rw-r--r--src/components/notification/notification.vue14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/components/notification/notification.vue b/src/components/notification/notification.vue
index 1f192c77..16124e50 100644
--- a/src/components/notification/notification.vue
+++ b/src/components/notification/notification.vue
@@ -74,9 +74,13 @@
<i class="fa icon-user-plus lit" />
<small>{{ $t('notifications.followed_you') }}</small>
</span>
+ <span v-if="notification.type === 'move'">
+ <i class="fa icon-arrow-curved lit" />
+ <small>{{ $t('notifications.migrated_to') }}</small>
+ </span>
</div>
<div
- v-if="notification.type === 'follow'"
+ v-if="notification.type === 'follow' || notification.type === 'move'"
class="timeago"
>
<span class="faint">
@@ -115,6 +119,14 @@
@{{ notification.from_profile.screen_name }}
</router-link>
</div>
+ <div
+ v-else-if="notification.type === 'move'"
+ class="move-text"
+ >
+ <router-link :to="targetUserProfileLink">
+ @{{ notification.target.screen_name }}
+ </router-link>
+ </div>
<template v-else>
<status
class="faint"