diff --git a/client/components/admin/admin-navigation.vue b/client/components/admin/admin-navigation.vue index 639282bd..98f00344 100644 --- a/client/components/admin/admin-navigation.vue +++ b/client/components/admin/admin-navigation.vue @@ -39,6 +39,15 @@ v-list-item-avatar v-icon(v-if='$vuetify.theme.dark', :color='config.mode === `MIXED` ? `teal lighten-3` : `grey darken-2`') mdi-check-circle v-icon(v-else, :color='config.mode === `MIXED` ? `teal` : `grey lighten-3`') mdi-check-circle + v-list-item(value='STATIC') + v-list-item-avatar + img(src='/svg/icon-features-list.svg', alt='Static Navigation') + v-list-item-content + v-list-item-title {{$t('admin:navigation.modeStatic.title')}} + v-list-item-subtitle {{$t('admin:navigation.modeStatic.description')}} + v-list-item-avatar + v-icon(v-if='$vuetify.theme.dark', :color='config.mode === `STATIC` ? `teal lighten-3` : `grey darken-2`') mdi-check-circle + v-icon(v-else, :color='config.mode === `STATIC` ? `teal` : `grey lighten-3`') mdi-check-circle v-list-item(value='NONE') v-list-item-avatar img(src='/svg/icon-cancel-dotted.svg', alt='None') @@ -48,7 +57,7 @@ v-list-item-avatar v-icon(v-if='$vuetify.theme.dark', :color='config.mode === `none` ? `teal lighten-3` : `grey darken-2`') mdi-check-circle v-icon(v-else, :color='config.mode === `none` ? `teal` : `grey lighten-3`') mdi-check-circle - v-col(cols='9', v-if='config.mode === `MIXED`') + v-col(cols='9', v-if='config.mode === `MIXED` || config.mode === `STATIC`') v-card.animated.fadeInUp.wait-p2s v-row(no-gutters, align='stretch') v-col(style='flex: 0 0 350px;') diff --git a/client/static/svg/icon-features-list.svg b/client/static/svg/icon-features-list.svg new file mode 100644 index 00000000..30d2a414 --- /dev/null +++ b/client/static/svg/icon-features-list.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/client/themes/default/components/nav-sidebar.vue b/client/themes/default/components/nav-sidebar.vue index 4d065272..279374c3 100644 --- a/client/themes/default/components/nav-sidebar.vue +++ b/client/themes/default/components/nav-sidebar.vue @@ -198,6 +198,8 @@ export default { this.currentParent.title = `/ ${this.$t('common:sidebar.root')}` if (this.navMode === 'TREE') { this.currentMode = 'browse' + } else if (this.navMode === 'STATIC') { + this.currentMode = 'custom' } else { this.currentMode = window.localStorage.getItem('navPref') || 'custom' } diff --git a/server/graph/schemas/navigation.graphql b/server/graph/schemas/navigation.graphql index ecbd9136..ab9281af 100644 --- a/server/graph/schemas/navigation.graphql +++ b/server/graph/schemas/navigation.graphql @@ -76,4 +76,5 @@ enum NavigationMode { NONE TREE MIXED + STATIC }