Skip to content

Commit

Permalink
fix(multi-dho-layout): add loading if is logged
Browse files Browse the repository at this point in the history
  • Loading branch information
arsenijesavic committed Sep 25, 2023
1 parent b9bea90 commit 6fdfe34
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/layouts/MultiDhoLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ export default {
isHypha: dao?.settings[0]?.settings_isHypha_i || ''
}
},
skip () { return !this.dhoname || !this.account },
skip () { return !this.dhoname || this.isLogged ? !this.account : '' },
variables () {
return {
regexp: '/^' + this.dhoname + '$/i',
Expand Down Expand Up @@ -588,6 +588,7 @@ export default {
isLoading () { return this.$apollo.queries.dhos.loading },
status () { return this.$route.meta ? this.$route.meta.status ?? 'red' : 'red' },
isLogged () { return localStorage.getItem('autoLogin') },
loadingAccount () { return localStorage?.getItem('autoLogin') && !this.account },
showTopBarItems () {
Expand Down

0 comments on commit 6fdfe34

Please sign in to comment.