aboutsummaryrefslogtreecommitdiff
path: root/src/components/notifications
diff options
context:
space:
mode:
authorShpuld Shpuldson <shp@cock.li>2020-07-14 11:44:06 +0300
committerShpuld Shpuldson <shp@cock.li>2020-07-14 11:44:06 +0300
commitcac1418affbc0ae91bce2a4d4c14046e73484116 (patch)
treeb8a9ef91853d7f4d3f35e632e0b3e71b5dd79c7d /src/components/notifications
parent78ec84477e978a654ecfd482157dbf04a69f32e2 (diff)
parent3e09a708f600b47dde831eeddb412828b38a0cf4 (diff)
fix merge conflicts
Diffstat (limited to 'src/components/notifications')
-rw-r--r--src/components/notifications/notifications.js9
-rw-r--r--src/components/notifications/notifications.scss5
2 files changed, 12 insertions, 2 deletions
diff --git a/src/components/notifications/notifications.js b/src/components/notifications/notifications.js
index d8a327b0..d951e2a8 100644
--- a/src/components/notifications/notifications.js
+++ b/src/components/notifications/notifications.js
@@ -1,3 +1,4 @@
+import { mapGetters } from 'vuex'
import Notification from '../notification/notification.vue'
import notificationsFetcher from '../../services/notifications_fetcher/notifications_fetcher.service.js'
import {
@@ -51,18 +52,22 @@ const Notifications = {
unseenCount () {
return this.unseenNotifications.length
},
+ unseenCountTitle () {
+ return this.unseenCount + (this.unreadChatCount)
+ },
loading () {
return this.$store.state.statuses.notifications.loading
},
notificationsToDisplay () {
return this.filteredNotifications.slice(0, this.unseenCount + this.seenToDisplayCount)
- }
+ },
+ ...mapGetters(['unreadChatCount'])
},
components: {
Notification
},
watch: {
- unseenCount (count) {
+ unseenCountTitle (count) {
if (count > 0) {
this.$store.dispatch('setPageTitle', `(${count})`)
} else {
diff --git a/src/components/notifications/notifications.scss b/src/components/notifications/notifications.scss
index 20797cf9..b1a3ad70 100644
--- a/src/components/notifications/notifications.scss
+++ b/src/components/notifications/notifications.scss
@@ -118,6 +118,11 @@
flex: 1;
padding-left: 0.8em;
min-width: 0;
+
+ .timeago {
+ min-width: 3em;
+ text-align: right;
+ }
}
.emoji-reaction-emoji {