Reload Public from reload button
This commit is contained in:
parent
b4ed8f5179
commit
f82a6c2ed7
|
@ -26,7 +26,8 @@ export default {
|
|||
lazyLoading: state => state.TimelineSpace.Contents.Public.lazyLoading,
|
||||
backgroundColor: state => state.App.theme.background_color,
|
||||
heading: state => state.TimelineSpace.Contents.Public.heading,
|
||||
unread: state => state.TimelineSpace.Contents.Public.unreadTimeline
|
||||
unread: state => state.TimelineSpace.Contents.Public.unreadTimeline,
|
||||
startReload: state => state.TimelineSpace.HeaderMenu.reload
|
||||
})
|
||||
},
|
||||
created () {
|
||||
|
@ -58,6 +59,16 @@ export default {
|
|||
document.getElementById('scrollable').scrollTop = 0
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
startReload: function (newState, oldState) {
|
||||
if (!oldState && newState) {
|
||||
this.reload()
|
||||
.finally(() => {
|
||||
this.$store.commit('TimelineSpace/HeaderMenu/changeReload', false)
|
||||
})
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
async initialize () {
|
||||
try {
|
||||
|
|
Loading…
Reference in New Issue