interactions.js (823B)
- import Notifications from '../notifications/notifications.vue'
- import TabSwitcher from 'src/components/tab_switcher/tab_switcher.jsx'
- const tabModeDict = {
- mentions: ['mention'],
- statuses: ['status'],
- 'likes+repeats': ['repeat', 'like'],
- follows: ['follow'],
- reactions: ['pleroma:emoji_reaction'],
- reports: ['pleroma:report'],
- moves: ['move']
- }
- const Interactions = {
- data () {
- return {
- allowFollowingMove: this.$store.state.users.currentUser.allow_following_move,
- filterMode: tabModeDict.mentions,
- canSeeReports: this.$store.state.users.currentUser.privileges.includes('reports_manage_reports')
- }
- },
- methods: {
- onModeSwitch (key) {
- this.filterMode = tabModeDict[key]
- }
- },
- components: {
- Notifications,
- TabSwitcher
- }
- }
- export default Interactions