aboutsummaryrefslogtreecommitdiff
path: root/src/components/notifications/notifications.js
diff options
context:
space:
mode:
authorshpuld <shp@cock.li>2018-04-09 20:44:37 +0300
committershpuld <shp@cock.li>2018-04-09 20:44:37 +0300
commitc214197cee192d9ae511d145d8e28cef8ae9a0d1 (patch)
tree28abf08493b5007abae7765eaf5c48d9f9953c88 /src/components/notifications/notifications.js
parentec2a719f0d4a17c96b51b7a410be827e39e565c9 (diff)
Separate notification into its own component, fix follow notification type
Diffstat (limited to 'src/components/notifications/notifications.js')
-rw-r--r--src/components/notifications/notifications.js12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/components/notifications/notifications.js b/src/components/notifications/notifications.js
index 19f767ab..f8314bfc 100644
--- a/src/components/notifications/notifications.js
+++ b/src/components/notifications/notifications.js
@@ -1,14 +1,11 @@
-import Status from '../status/status.vue'
-import StillImage from '../still-image/still-image.vue'
-import UserCardContent from '../user_card_content/user_card_content.vue'
+import Notification from '../notification/notification.vue'
import { sortBy, take, filter } from 'lodash'
const Notifications = {
data () {
return {
- visibleNotificationCount: 10,
- userExpanded: false
+ visibleNotificationCount: 20
}
},
computed: {
@@ -29,7 +26,7 @@ const Notifications = {
}
},
components: {
- Status, StillImage, UserCardContent
+ Notification
},
watch: {
unseenCount (count) {
@@ -43,9 +40,6 @@ const Notifications = {
methods: {
markAsSeen () {
this.$store.commit('markNotificationsAsSeen', this.visibleNotifications)
- },
- toggleUserExpanded () {
- this.userExpanded = !this.userExpanded
}
}
}