2019-05-14 19:38:16 +00:00
|
|
|
import Notifications from '../notifications/notifications.vue'
|
|
|
|
|
|
|
|
const tabModeDict = {
|
|
|
|
mentions: ['mention'],
|
|
|
|
'likes+repeats': ['repeat', 'like'],
|
2019-12-11 09:25:52 +00:00
|
|
|
follows: ['follow'],
|
|
|
|
moves: ['move']
|
2019-05-14 19:38:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
const Interactions = {
|
|
|
|
data () {
|
|
|
|
return {
|
2020-02-03 19:30:31 +00:00
|
|
|
allowFollowingMove: this.$store.state.users.currentUser.allow_following_move,
|
2019-05-14 19:38:16 +00:00
|
|
|
filterMode: tabModeDict['mentions']
|
|
|
|
}
|
|
|
|
},
|
|
|
|
methods: {
|
2019-08-10 03:48:08 +00:00
|
|
|
onModeSwitch (key) {
|
|
|
|
this.filterMode = tabModeDict[key]
|
2019-05-14 19:38:16 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
components: {
|
|
|
|
Notifications
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default Interactions
|