1
0

Fix loading states for unrelated components (#370)

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/370
Co-authored-by: konrad <konrad@kola-entertainments.de>
Co-committed-by: konrad <konrad@kola-entertainments.de>
This commit is contained in:
konrad
2021-01-09 14:24:06 +00:00
parent 7d40b29ae8
commit e44be61d2a
8 changed files with 30 additions and 17 deletions

View File

@ -133,7 +133,7 @@
<script>
import {mapState} from 'vuex'
import {CURRENT_LIST, IS_FULLPAGE, MENU_ACTIVE} from '@/store/mutation-types'
import {CURRENT_LIST, IS_FULLPAGE, MENU_ACTIVE, LOADING, LOADING_MODULE} from '@/store/mutation-types'
export default {
name: 'navigation',
@ -145,7 +145,7 @@ export default {
currentList: CURRENT_LIST,
background: 'background',
menuActive: MENU_ACTIVE,
loading: state => state.namespaces.loading,
loading: state => state[LOADING] && state[LOADING_MODULE] === 'namespaces',
}),
beforeCreate() {
this.$store.dispatch('namespaces/loadNamespaces')