logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://anongit.hacktivis.me/git/pleroma-fe.git/

interactions.js (823B)


  1. import Notifications from '../notifications/notifications.vue'
  2. import TabSwitcher from 'src/components/tab_switcher/tab_switcher.jsx'
  3. const tabModeDict = {
  4. mentions: ['mention'],
  5. statuses: ['status'],
  6. 'likes+repeats': ['repeat', 'like'],
  7. follows: ['follow'],
  8. reactions: ['pleroma:emoji_reaction'],
  9. reports: ['pleroma:report'],
  10. moves: ['move']
  11. }
  12. const Interactions = {
  13. data () {
  14. return {
  15. allowFollowingMove: this.$store.state.users.currentUser.allow_following_move,
  16. filterMode: tabModeDict.mentions,
  17. canSeeReports: this.$store.state.users.currentUser.privileges.includes('reports_manage_reports')
  18. }
  19. },
  20. methods: {
  21. onModeSwitch (key) {
  22. this.filterMode = tabModeDict[key]
  23. }
  24. },
  25. components: {
  26. Notifications,
  27. TabSwitcher
  28. }
  29. }
  30. export default Interactions