1
0

Only show loading spinner over menu when loading namespaces

This commit is contained in:
kolaente
2020-12-23 21:26:43 +01:00
parent ad33458a80
commit f9d295fc67
3 changed files with 17 additions and 6 deletions

View File

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