fix: admin with route false
This commit is contained in:
parent
0ebb4a922b
commit
c3e9bb42c9
@ -1,6 +1,7 @@
|
|||||||
.with-sidebar.whitespace-normal.bg-color-white.only-on-admin(hidden)
|
.with-sidebar.whitespace-normal.bg-color-white.only-on-admin(hidden)
|
||||||
.scrollbar-content.views-container.sidebar-is-closed
|
.scrollbar-content.views-container.sidebar-is-closed
|
||||||
for component of components
|
for component of components
|
||||||
|
if component.route
|
||||||
if component.type == "circles"
|
if component.type == "circles"
|
||||||
div(
|
div(
|
||||||
id=`admin-${component.route}`
|
id=`admin-${component.route}`
|
||||||
@ -65,6 +66,7 @@
|
|||||||
span.icon.icon-arrow-right.icon-xsmall.margin-right-xxsmall
|
span.icon.icon-arrow-right.icon-xsmall.margin-right-xxsmall
|
||||||
a(data-trans='admin.menuRight.fold')
|
a(data-trans='admin.menuRight.fold')
|
||||||
for component of components
|
for component of components
|
||||||
|
if component.route
|
||||||
if component.type == "circles"
|
if component.type == "circles"
|
||||||
solid-link.segment.full(next=`admin-${component.route}`)
|
solid-link.segment.full(next=`admin-${component.route}`)
|
||||||
li.segment.full.padding-medium
|
li.segment.full.padding-medium
|
||||||
|
@ -45,15 +45,15 @@ div
|
|||||||
li.segment.padding-small.border-bottom.border-color-grey
|
li.segment.padding-small.border-bottom.border-color-grey
|
||||||
div(data-trans='header.admin')
|
div(data-trans='header.admin')
|
||||||
ul.text-normal
|
ul.text-normal
|
||||||
if componentSet.has("communities")
|
if componentSet.has("communities") && getComponent("chat").route
|
||||||
solid-link.text-hover(next=`admin-${getRoute("chat", true)}`)
|
solid-link.text-hover(next=`admin-${getRoute("chat", true)}`)
|
||||||
li.segment.padding-top-small
|
li.segment.padding-top-small
|
||||||
a.icon.icon-people.icon-third.icon-small.icon-margin-right-xsmall(data-trans='admin.menuRight.community')
|
a.icon.icon-people.icon-third.icon-small.icon-margin-right-xsmall(data-trans='admin.menuRight.community')
|
||||||
if componentSet.has("circles")
|
if componentSet.has("circles") && getComponent("circles").route
|
||||||
solid-link.text-hover(next=`admin-${getRoute("circles", true)}`)
|
solid-link.text-hover(next=`admin-${getRoute("circles", true)}`)
|
||||||
li.segment.padding-top-small
|
li.segment.padding-top-small
|
||||||
a.icon.icon-globe.icon-third.icon-small.icon-margin-right-xsmall(data-trans='admin.menuRight.circles')
|
a.icon.icon-globe.icon-third.icon-small.icon-margin-right-xsmall(data-trans='admin.menuRight.circles')
|
||||||
if componentSet.has("projects")
|
if componentSet.has("projects") && getComponent("projects").route
|
||||||
solid-link.text-hover(next=`admin-${getRoute("projects", true)}`)
|
solid-link.text-hover(next=`admin-${getRoute("projects", true)}`)
|
||||||
li.segment.padding-top-small
|
li.segment.padding-top-small
|
||||||
a.icon.icon-folder-alt.icon-third.icon-small.icon-margin-right-xsmall(data-trans='admin.menuRight.projects')
|
a.icon.icon-folder-alt.icon-third.icon-small.icon-margin-right-xsmall(data-trans='admin.menuRight.projects')
|
||||||
@ -96,15 +96,15 @@ div
|
|||||||
li.segment.padding-small.sm-padding-medium.sm-padding-left-xlarge.border-bottom.border-color-grey
|
li.segment.padding-small.sm-padding-medium.sm-padding-left-xlarge.border-bottom.border-color-grey
|
||||||
div(data-trans='header.admin')
|
div(data-trans='header.admin')
|
||||||
ul.text-normal
|
ul.text-normal
|
||||||
if componentSet.has("communities")
|
if componentSet.has("communities") && getComponent("chat").route
|
||||||
solid-link.text-hover(next=`admin-${getRoute("chat", true)}`)
|
solid-link.text-hover(next=`admin-${getRoute("chat", true)}`)
|
||||||
li.segment.padding-top-small.sm-padding-top-medium
|
li.segment.padding-top-small.sm-padding-top-medium
|
||||||
a.icon.icon-people.icon-third.icon-small.icon-margin-right-xsmall(data-trans='admin.menuRight.community')
|
a.icon.icon-people.icon-third.icon-small.icon-margin-right-xsmall(data-trans='admin.menuRight.community')
|
||||||
if componentSet.has("circles")
|
if componentSet.has("circles") && getComponent("circles").route
|
||||||
solid-link.text-hover(next=`admin-${getRoute("circles", true)}`)
|
solid-link.text-hover(next=`admin-${getRoute("circles", true)}`)
|
||||||
li.segment.padding-top-small.sm-padding-top-medium
|
li.segment.padding-top-small.sm-padding-top-medium
|
||||||
a.icon.icon-globe.icon-third.icon-small.icon-margin-right-xsmall(data-trans='admin.menuRight.circles')
|
a.icon.icon-globe.icon-third.icon-small.icon-margin-right-xsmall(data-trans='admin.menuRight.circles')
|
||||||
if componentSet.has("projects")
|
if componentSet.has("projects") && getComponent("projects").route
|
||||||
solid-link.text-hover(next=`admin-${getRoute("projects", true)}`)
|
solid-link.text-hover(next=`admin-${getRoute("projects", true)}`)
|
||||||
li.segment.padding-top-small.sm-padding-top-medium
|
li.segment.padding-top-small.sm-padding-top-medium
|
||||||
a.icon.icon-folder-alt.icon-third.icon-small.icon-margin-right-xsmall(data-trans='admin.menuRight.projects')
|
a.icon.icon-folder-alt.icon-third.icon-small.icon-margin-right-xsmall(data-trans='admin.menuRight.projects')
|
||||||
|
Loading…
Reference in New Issue
Block a user