diff --git a/webapp/components/Comment.vue b/webapp/components/Comment.vue index d8f63526f..aba055a60 100644 --- a/webapp/components/Comment.vue +++ b/webapp/components/Comment.vue @@ -10,7 +10,7 @@
- + @@ -33,15 +33,19 @@ v-show="comment.content !== comment.contentExcerpt" style="text-align: right; margin-right: 20px; margin-top: -12px;" > - - {{ $t('comment.show.more') }} - + {{ $t('comment.show.more') }}
- - {{ $t('comment.show.less') }} - + {{ $t('comment.show.less') }}
diff --git a/webapp/components/notifications/Notification/index.vue b/webapp/components/notifications/Notification/index.vue index 336e6b332..cf6f34381 100644 --- a/webapp/components/notifications/Notification/index.vue +++ b/webapp/components/notifications/Notification/index.vue @@ -2,18 +2,29 @@ - + - {{ $t('notifications.menu.mentioned') }} + {{ $t('notifications.menu.mentioned', { resource: post.id ? 'post' : 'comment' }) }} - +
@@ -40,7 +51,10 @@ export default { }, computed: { excerpt() { - return this.$filters.removeLinks(this.post.contentExcerpt) + const excerpt = this.post.id ? this.post.contentExcerpt : this.comment.contentExcerpt + return ( + (!this.post.id ? 'Comment: ' : '') + excerpt.replace(/<(?:.|\n)*?>/gm, '').trim() + ) }, post() { return this.notification.post || {} @@ -48,6 +62,18 @@ export default { comment() { return this.notification.comment || {} }, + postParams() { + return { + id: this.post.id || this.comment.post.id, + } + }, + queryParams() { + return this.post.id + ? {} + : { + query: { commentId: this.comment.id }, + } + }, }, } @@ -57,4 +83,7 @@ export default { opacity: 0.6; /* Real browsers */ filter: alpha(opacity = 60); /* MSIE */ } +.notifications-card { + min-width: 500px; +} diff --git a/webapp/components/notifications/NotificationMenu/index.vue b/webapp/components/notifications/NotificationMenu/index.vue index a3f637d14..983b0c49b 100644 --- a/webapp/components/notifications/NotificationMenu/index.vue +++ b/webapp/components/notifications/NotificationMenu/index.vue @@ -1,12 +1,13 @@