aboutsummaryrefslogtreecommitdiff
path: root/src/components/notifications/notifications.js
diff options
context:
space:
mode:
authorshpuld <shp@cock.li>2018-04-09 19:43:31 +0300
committershpuld <shp@cock.li>2018-04-09 19:43:31 +0300
commitf4f9b3fa265df95ade97625cf2f870ded0825eb1 (patch)
treebc90340face910ee2c72ebcd9ee8911d62ac9ee3 /src/components/notifications/notifications.js
parent936ca1a38cc1b9206dea8970eda6885fc7d4391d (diff)
small fixes
Diffstat (limited to 'src/components/notifications/notifications.js')
-rw-r--r--src/components/notifications/notifications.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/components/notifications/notifications.js b/src/components/notifications/notifications.js
index e9b83bf0..19f767ab 100644
--- a/src/components/notifications/notifications.js
+++ b/src/components/notifications/notifications.js
@@ -1,12 +1,14 @@
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 { sortBy, take, filter } from 'lodash'
const Notifications = {
data () {
return {
- visibleNotificationCount: 10
+ visibleNotificationCount: 10,
+ userExpanded: false
}
},
computed: {
@@ -24,15 +26,10 @@ const Notifications = {
},
unseenCount () {
return this.unseenNotifications.length
- },
- hiderStyle () {
- return {
- background: `linear-gradient(to bottom, rgba(0, 0, 0, 0), ${this.$store.state.config.colors['base00']} 80%)`
- }
}
},
components: {
- Status, StillImage
+ Status, StillImage, UserCardContent
},
watch: {
unseenCount (count) {
@@ -46,6 +43,9 @@ const Notifications = {
methods: {
markAsSeen () {
this.$store.commit('markNotificationsAsSeen', this.visibleNotifications)
+ },
+ toggleUserExpanded () {
+ this.userExpanded = !this.userExpanded
}
}
}