Skip to content
This repository has been archived by the owner on Nov 22, 2022. It is now read-only.

Commit

Permalink
Add ui settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Fajfa committed Feb 23, 2022
1 parent a936204 commit a2dd9fe
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/components/Namespaces/NamespaceSidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<div>
<portal to="sidebar-header-expanded">
<vue-select
v-if="!hideNamespaceList"
key="namespaceID"
label="name"
class="namespace-selector sticky-top bg-white mt-2"
Expand All @@ -13,6 +14,7 @@
>
<template #list-footer>
<router-link
v-if="!hideNamespaceListLink"
:to="{ name: 'namespace.list' }"
class="d-block mt-3 ml-3 mb-1 font-weight-bold"
>
Expand Down Expand Up @@ -173,6 +175,16 @@ export default {
return this.namespacePending || this.modulePending || this.chartPending || this.pagePending
},
hideNamespaceList () {
const { hideNamespaceList } = this.$Settings.get('compose.ui.sidebar', {})
return hideNamespaceList
},
hideNamespaceListLink () {
const { hideNamespaceListLink } = this.$Settings.get('compose.ui.sidebar', {})
return hideNamespaceListLink
},
isAdminPage () {
return this.$route.name.includes('admin.')
},
Expand Down
1 change: 1 addition & 0 deletions src/views/Layout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
>
<c-topbar
:sidebar-pinned="pinned"
:settings="$Settings.get('ui.topbar', {})"
:labels="{
helpForum: $t('help.forum'),
helpDocumentation: $t('help.documentation'),
Expand Down

0 comments on commit a2dd9fe

Please sign in to comment.