pleroma-fe/src/components/interactions/interactions.js

26 lines
450 B
JavaScript
Raw Normal View History

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) {
this.filterMode = tabModeDict[dataset.filter]
}
},
components: {
Notifications
}
}
export default Interactions