yandere_fe/src/components/interactions/interactions.js

33 lines
799 B
JavaScript
Raw Normal View History

import Notifications from '../notifications/notifications.vue'
2022-03-21 12:29:51 -07:00
import TabSwitcher from 'src/components/tab_switcher/tab_switcher.jsx'
const tabModeDict = {
mentions: ['mention'],
'likes+repeats': ['repeat', 'like'],
follows: ['follow'],
2020-11-15 03:57:02 -08:00
reactions: ['pleroma:emoji_reaction'],
reports: ['pleroma:report'],
moves: ['move']
}
const Interactions = {
data () {
return {
allowFollowingMove: this.$store.state.users.currentUser.allow_following_move,
2022-08-06 21:02:21 -07:00
filterMode: tabModeDict.mentions,
canSeeReports: this.$store.state.users.currentUser.privileges.includes('reports_manage_reports')
}
},
methods: {
onModeSwitch (key) {
this.filterMode = tabModeDict[key]
}
},
components: {
2022-03-21 12:29:51 -07:00
Notifications,
TabSwitcher
}
}
export default Interactions