2019-05-14 22:38:16 +03:00
|
|
|
import Notifications from '../notifications/notifications.vue'
|
2022-03-21 21:29:51 +02:00
|
|
|
import TabSwitcher from 'src/components/tab_switcher/tab_switcher.jsx'
|
2019-05-14 22:38:16 +03:00
|
|
|
|
|
|
|
const tabModeDict = {
|
|
|
|
mentions: ['mention'],
|
|
|
|
'likes+repeats': ['repeat', 'like'],
|
2019-12-11 18:25:52 +09:00
|
|
|
follows: ['follow'],
|
2020-11-15 13:57:02 +02:00
|
|
|
reactions: ['pleroma:emoji_reaction'],
|
|
|
|
reports: ['pleroma:report'],
|
2019-12-11 18:25:52 +09:00
|
|
|
moves: ['move']
|
2019-05-14 22:38:16 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
const Interactions = {
|
|
|
|
data () {
|
|
|
|
return {
|
2020-02-04 04:30:31 +09:00
|
|
|
allowFollowingMove: this.$store.state.users.currentUser.allow_following_move,
|
2022-08-06 22:02:21 -06:00
|
|
|
filterMode: tabModeDict.mentions,
|
2022-09-24 16:00:10 +02:00
|
|
|
canSeeReports: this.$store.state.users.currentUser.privileges.includes('reports_manage_reports')
|
2019-05-14 22:38:16 +03:00
|
|
|
}
|
|
|
|
},
|
|
|
|
methods: {
|
2019-08-09 23:48:08 -04:00
|
|
|
onModeSwitch (key) {
|
|
|
|
this.filterMode = tabModeDict[key]
|
2019-05-14 22:38:16 +03:00
|
|
|
}
|
|
|
|
},
|
|
|
|
components: {
|
2022-03-21 21:29:51 +02:00
|
|
|
Notifications,
|
|
|
|
TabSwitcher
|
2019-05-14 22:38:16 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default Interactions
|