feat: defer everything until the api config is loaded #926

Merged
konrad merged 27 commits from feature/ready-state into main 2021-11-13 19:49:03 +00:00
1 changed files with 3 additions and 4 deletions
Showing only changes of commit 628d102907 - Show all commits

View File

@ -45,7 +45,6 @@ import logoUrl from '@/assets/logo.svg'
import ApiConfig from '@/components/misc/api-config'
import NoAuthWrapper from '@/components/misc/no-auth-wrapper'
import {mapState} from 'vuex'
import {ONLINE} from '@/store/mutation-types'
import {ERROR_NO_API_URL} from '@/helpers/checkAndSetApiUrl'
export default {
@ -71,9 +70,9 @@ export default {
showLoading() {
return !this.ready && this.error === ''
},
...mapState({
online: ONLINE,
}),
...mapState([
'online',
]),
konrad marked this conversation as resolved Outdated

ONLINE is no mutation type. It's a state.

`ONLINE` is no mutation type. It's a state.

Right, fixed.

Right, fixed.
},
methods: {
load() {