Require available for ready

This commit is contained in:
Joel Collins 2019-11-11 14:59:05 +00:00
parent 6b8a2924a5
commit 8ae46c97b0

View file

@ -194,7 +194,7 @@ export default new Vuex.Store({
getters: {
uri: state => `http://${state.host}:${state.port}/api/${state.apiVer}`,
ready: state => ((Object.keys(state.apiConfig).length !== 0) && (Object.keys(state.apiState).length !== 0))
ready: state => ((state.available) && (Object.keys(state.apiConfig).length !== 0) && (Object.keys(state.apiState).length !== 0))
}
})