aboutsummaryrefslogtreecommitdiff
path: root/src/components/interactions/interactions.js
blob: 4c56a931a39eeaf743e7fb4e015a1863f1c1d004 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import Notifications from '../notifications/notifications.vue'

const tabModeDict = {
  mentions: ['mention'],
  'likes+repeats': ['repeat', 'like'],
  follows: ['follow']
}

const Interactions = {
  data () {
    return {
      filterMode: tabModeDict['mentions']
    }
  },
  methods: {
    onModeSwitch(index, dataset) {
      this.filterMode = tabModeDict[dataset.filter]
    }
  },
  components: {
    Notifications
  }
}

export default Interactions