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:48:08 +10:00
|
|
|
onModeSwitch (key) {
|
|
|
|
this.filterMode = tabModeDict[key]
|
2019-05-15 05:38:16 +10:00
|
|
|
}
|
|
|
|
},
|
|
|
|
components: {
|
|
|
|
Notifications
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default Interactions
|