Changeset View
Changeset View
Standalone View
Standalone View
src/resources/vue/App.vue
Show All 22 Lines | export default { | ||||
this.$root.stopLoading() | this.$root.stopLoading() | ||||
this.$root.loginUser(response.data, false) | this.$root.loginUser(response.data, false) | ||||
this.$store.state.authInfo = response.data | this.$store.state.authInfo = response.data | ||||
}) | }) | ||||
.catch(error => { | .catch(error => { | ||||
// Release lock on the router-view, otherwise links (e.g. Logout) will not work | // Release lock on the router-view, otherwise links (e.g. Logout) will not work | ||||
// FIXME: This causes dashboard to call /api/auth/info again | // FIXME: This causes dashboard to call /api/auth/info again | ||||
this.isLoading = false | this.isLoading = false | ||||
this.$root.logoutUser(false) | |||||
this.$root.errorHandler(error) | this.$root.errorHandler(error) | ||||
}) | }) | ||||
} else { | } else { | ||||
this.$root.stopLoading() | this.$root.stopLoading() | ||||
this.isLoading = false | this.isLoading = false | ||||
} | } | ||||
}, | }, | ||||
methods: { | methods: { | ||||
Show All 12 Lines |