Reload after logging in
This commit is contained in:
parent
3d484def87
commit
966546086d
|
|
@ -54,6 +54,10 @@ export default new Vuex.Store({
|
||||||
setChannelCreatorState(state, open) {
|
setChannelCreatorState(state, open) {
|
||||||
state.channelCreatorIsOpen = open
|
state.channelCreatorIsOpen = open
|
||||||
},
|
},
|
||||||
|
newEndpoints(state, endpoints) {
|
||||||
|
state.micropubEndpoint = endpoints.micropubEndpoint
|
||||||
|
state.microsubEndpoint = endpoints.microsubEndpoint
|
||||||
|
},
|
||||||
createEventSource(state, url) {
|
createEventSource(state, url) {
|
||||||
state.eventSource = new EventSource(state.microsubEndpoint + url, {
|
state.eventSource = new EventSource(state.microsubEndpoint + url, {
|
||||||
headers: {
|
headers: {
|
||||||
|
|
|
||||||
|
|
@ -78,6 +78,9 @@
|
||||||
|
|
||||||
watch: {
|
watch: {
|
||||||
'$route'(to, from) {
|
'$route'(to, from) {
|
||||||
|
if (to === from) {
|
||||||
|
this.$forceUpdate()
|
||||||
|
}
|
||||||
this.$store.dispatch('fetchChannels')
|
this.$store.dispatch('fetchChannels')
|
||||||
this.$store.dispatch('fetchTimeline', {uid: to.params.uid}).then(() => {
|
this.$store.dispatch('fetchTimeline', {uid: to.params.uid}).then(() => {
|
||||||
window.scrollTo({top: 0})
|
window.scrollTo({top: 0})
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user