Update Timeline.vue, fix notification bug

pull/846/head
Daniel Supernault 6 years ago
parent e45a3c4b93
commit 661e60027e
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7

@ -450,7 +450,12 @@
fetchNotifications() {
axios.get('/api/v1/notifications')
.then(res => {
this.notifications = res.data;
this.notifications = res.data.filter(n => {
if(n.type == 'share' && !status) {
return false;
}
return true;
});
$('.notification-card .loader').addClass('d-none');
$('.notification-card .contents').removeClass('d-none');
});

Loading…
Cancel
Save