mirror of
https://github.com/romancm/gamebrary
synced 2024-11-14 23:47:08 +00:00
show dock when authenticating
This commit is contained in:
parent
1b9d73ae74
commit
1d3ebd976e
1 changed files with 5 additions and 5 deletions
10
src/App.vue
10
src/App.vue
|
@ -6,7 +6,7 @@
|
|||
v-shortkey="KEYBOARD_SHORTCUTS"
|
||||
@shortkey="handleShortcutAction"
|
||||
>
|
||||
<dock />
|
||||
<dock v-if="user || isPublicRoute" />
|
||||
<global-modals />
|
||||
|
||||
<main :class="{
|
||||
|
@ -54,12 +54,12 @@ export default {
|
|||
},
|
||||
|
||||
dir() {
|
||||
const { language } = this.settings;
|
||||
const { settings } = this;
|
||||
|
||||
return language === 'ar' ? 'rtl' : 'ltr';
|
||||
return settings && settings.language === 'ar' ? 'rtl' : 'ltr';
|
||||
},
|
||||
|
||||
isPublicBoard() {
|
||||
isPublicRoute() {
|
||||
return this.$route.meta && this.$route.meta.public;
|
||||
},
|
||||
|
||||
|
@ -80,7 +80,7 @@ export default {
|
|||
},
|
||||
|
||||
init() {
|
||||
if (this.isPublicBoard) {
|
||||
if (this.isPublicRoute) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue