forked from mirror/pixelfed
Update notification components, add modlog and tagged notification types
This commit is contained in:
parent
9419cad0d2
commit
51862b8b2b
|
@ -42,6 +42,16 @@
|
||||||
<a :href="n.account.url" class="font-weight-bold text-dark word-break" data-placement="bottom" data-toggle="tooltip" :title="n.account.username">{{truncate(n.account.username)}}</a> shared your <a class="font-weight-bold" v-bind:href="n.status.reblog.url">post</a>.
|
<a :href="n.account.url" class="font-weight-bold text-dark word-break" data-placement="bottom" data-toggle="tooltip" :title="n.account.username">{{truncate(n.account.username)}}</a> shared your <a class="font-weight-bold" v-bind:href="n.status.reblog.url">post</a>.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
<div v-else-if="n.type == 'modlog'">
|
||||||
|
<p class="my-0">
|
||||||
|
<a :href="n.account.url" class="font-weight-bold text-dark word-break" :title="n.account.username">{{truncate(n.account.username)}}</a> updated a <a class="font-weight-bold" v-bind:href="n.modlog.url">modlog</a>.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div v-else-if="n.type == 'tagged'">
|
||||||
|
<p class="my-0">
|
||||||
|
<a :href="n.account.url" class="font-weight-bold text-dark word-break" :title="n.account.username">{{truncate(n.account.username)}}</a> tagged you in a <a class="font-weight-bold" v-bind:href="n.tagged.post_url">post</a>.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
<div class="align-items-center">
|
<div class="align-items-center">
|
||||||
<span class="small text-muted" data-toggle="tooltip" data-placement="bottom" :title="n.created_at">{{timeAgo(n.created_at)}}</span>
|
<span class="small text-muted" data-toggle="tooltip" data-placement="bottom" :title="n.created_at">{{timeAgo(n.created_at)}}</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -236,6 +246,9 @@ export default {
|
||||||
case 'comment':
|
case 'comment':
|
||||||
return n.status.url;
|
return n.status.url;
|
||||||
break;
|
break;
|
||||||
|
case 'tagged':
|
||||||
|
return n.tagged.post_url;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
return '/';
|
return '/';
|
||||||
},
|
},
|
||||||
|
|
|
@ -57,6 +57,16 @@
|
||||||
<a :href="n.account.url" class="font-weight-bold text-dark word-break" :title="n.account.username">{{truncate(n.account.username)}}</a> updated a <a class="font-weight-bold" v-bind:href="n.modlog.url">modlog</a>.
|
<a :href="n.account.url" class="font-weight-bold text-dark word-break" :title="n.account.username">{{truncate(n.account.username)}}</a> updated a <a class="font-weight-bold" v-bind:href="n.modlog.url">modlog</a>.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
<div v-else-if="n.type == 'tagged'">
|
||||||
|
<p class="my-0">
|
||||||
|
<a :href="n.account.url" class="font-weight-bold text-dark word-break" :title="n.account.username">{{truncate(n.account.username)}}</a> tagged you in a <a class="font-weight-bold" v-bind:href="n.tagged.post_url">post</a>.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div v-else>
|
||||||
|
<p class="my-0">
|
||||||
|
We cannot display this notification at this time.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="small text-muted font-weight-bold" :title="n.created_at">{{timeAgo(n.created_at)}}</div>
|
<div class="small text-muted font-weight-bold" :title="n.created_at">{{timeAgo(n.created_at)}}</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue