refs #843 fix: Filter mentions to get only mentions for pleroma

This commit is contained in:
AkiraFukushima 2019-03-15 01:12:37 +09:00
parent f4ea67ff0a
commit 0520b3406a
2 changed files with 8 additions and 1 deletions

View File

@ -55,7 +55,6 @@ export default {
openSideBar: state => state.openSideBar
}),
...mapState('TimelineSpace/Contents/Mentions', {
mentions: state => state.mentions,
lazyLoading: state => state.lazyLoading,
heading: state => state.heading,
unread: state => state.unreadMentions,
@ -64,6 +63,9 @@ export default {
...mapGetters('TimelineSpace/Modals', [
'modalOpened'
]),
...mapGetters('TimelineSpace/Contents/Mentions', [
'mentions'
]),
shortcutEnabled: function () {
if (this.modalOpened) {
return false

View File

@ -90,6 +90,11 @@ const Mentions = {
commit('changeLazyLoading', false)
})
}
},
getters: {
mentions (state) {
return state.mentions.filter(mention => mention.type === 'mention')
}
}
}