logo

pleroma-fe

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

interactions.js (799B)


  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. 'likes+repeats': ['repeat', 'like'],
  6. follows: ['follow'],
  7. reactions: ['pleroma:emoji_reaction'],
  8. reports: ['pleroma:report'],
  9. moves: ['move']
  10. }
  11. const Interactions = {
  12. data () {
  13. return {
  14. allowFollowingMove: this.$store.state.users.currentUser.allow_following_move,
  15. filterMode: tabModeDict.mentions,
  16. canSeeReports: this.$store.state.users.currentUser.privileges.includes('reports_manage_reports')
  17. }
  18. },
  19. methods: {
  20. onModeSwitch (key) {
  21. this.filterMode = tabModeDict[key]
  22. }
  23. },
  24. components: {
  25. Notifications,
  26. TabSwitcher
  27. }
  28. }
  29. export default Interactions