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