aboutsummaryrefslogtreecommitdiff
path: root/src/components/notifications/notifications.vue
diff options
context:
space:
mode:
authoreal <eal@waifu.club>2017-08-10 19:17:40 +0300
committereal <eal@waifu.club>2017-08-10 19:17:40 +0300
commit701112f043720c294241852f9aa0a0f1956cd71c (patch)
treef45b71d3b3e1c45d9410c2025ba0a8d8ae8b47f5 /src/components/notifications/notifications.vue
parent9c5f001fd2bfd8a2d06e36f6dd1b7ac0c41e5cd2 (diff)
Add follow notifications.
Diffstat (limited to 'src/components/notifications/notifications.vue')
-rw-r--r--src/components/notifications/notifications.vue9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/components/notifications/notifications.vue b/src/components/notifications/notifications.vue
index 6c0419a5..c9113bc4 100644
--- a/src/components/notifications/notifications.vue
+++ b/src/components/notifications/notifications.vue
@@ -36,6 +36,15 @@
</h1>
<status :compact="true" :statusoid="notification.status"></status>
</div>
+ <div v-if="notification.type === 'follow'">
+ <h1>
+ <span :title="'@'+notification.action.user.screen_name">{{ notification.action.user.name }}</span>
+ <i class="fa icon-user-plus lit"></i>
+ </h1>
+ <div>
+ <router-link :to="{ name: 'user-profile', params: { id: notification.action.user.id } }">@{{ notification.action.user.screen_name }}</router-link> followed you
+ </div>
+ </div>
</div>
</div>
</div>