Hide disabled namespace from sidebar namespace dropdown
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
label="name"
|
||||
class="namespace-selector sticky-top bg-white mt-2"
|
||||
:clearable="false"
|
||||
:options="namespaces"
|
||||
:options="filteredNamespaces"
|
||||
:value="namespace"
|
||||
:selectable="option => option.namespaceID !== namespace.namespaceID"
|
||||
:placeholder="$t('pickNamespace')"
|
||||
@@ -252,6 +252,10 @@ export default {
|
||||
return []
|
||||
},
|
||||
|
||||
filteredNamespaces () {
|
||||
return this.namespaces.filter(({ enabled }) => enabled)
|
||||
},
|
||||
|
||||
navItems () {
|
||||
const current = this.filteredPages
|
||||
const ax = this.pageIndex(this.isAdminPage ? this.adminRoutes() : this.pages.map(publicPageWrap))
|
||||
|
||||
Reference in New Issue
Block a user