Merge pull request #726 from amyspark/clear-timeline-sidebar
Always clear timeline between switches/refreshes
This commit is contained in:
commit
e86d1c909a
|
@ -36,6 +36,7 @@ export default {
|
|||
},
|
||||
watch: {
|
||||
account: function (newAccount, oldAccount) {
|
||||
this.$store.dispatch('TimelineSpace/Contents/SideBar/AccountProfile/Timeline/clearTimeline')
|
||||
this.load()
|
||||
}
|
||||
},
|
||||
|
|
|
@ -80,6 +80,9 @@ const Timeline = {
|
|||
commit('changeLazyLoading', false)
|
||||
throw err
|
||||
})
|
||||
},
|
||||
clearTimeline ({ state, commit, rootState }) {
|
||||
commit('updateTimeline', [])
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -89,6 +89,8 @@ const TootDetail = {
|
|||
},
|
||||
actions: {
|
||||
changeToot ({ commit, dispatch }, message) {
|
||||
commit('updateAncestors', [])
|
||||
commit('updateDescendants', [])
|
||||
commit('changeToot', message)
|
||||
},
|
||||
fetchToot ({ state, commit, rootState }, message) {
|
||||
|
|
Loading…
Reference in New Issue