2019-05-15 05:38:16 +10:00
|
|
|
import Notifications from '../notifications/notifications.vue'
|
|
|
|
|
|
|
|
const tabModeDict = {
|
|
|
|
mentions: ['mention'],
|
|
|
|
'likes+repeats': ['repeat', 'like'],
|
|
|
|
follows: ['follow']
|
|
|
|
}
|
|
|
|
|
|
|
|
const Interactions = {
|
|
|
|
data () {
|
|
|
|
return {
|
|
|
|
filterMode: tabModeDict['mentions']
|
|
|
|
}
|
|
|
|
},
|
|
|
|
methods: {
|
2019-08-10 13:28:46 +10:00
|
|
|
onModeSwitch (dataset) {
|
2019-05-15 05:38:16 +10:00
|
|
|
this.filterMode = tabModeDict[dataset.filter]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
components: {
|
|
|
|
Notifications
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default Interactions
|