fix: extension.route on circles

This commit is contained in:
Jean-Baptiste Pasquier 2021-05-03 08:48:23 +00:00
parent 7d4378b862
commit 31d5357028

View File

@ -16,7 +16,7 @@
include partials/circle/page-circle-profile.pug
if component.extensions
for extension of component.extensions
if extension.type == 'events'
if extension.type == 'events' && extension.route
div(
id=`${extension.route}-events`
hidden
@ -24,7 +24,7 @@
no-render
)
include partials/circle/page-circle-events.pug
if extension.type == 'resources'
if extension.type == 'resources' && extension.route
div(
id=`${extension.route}-resources`
hidden
@ -32,7 +32,7 @@
no-render
)
include partials/circle/page-circle-resources.pug
if extension.type == 'polls'
if extension.type == 'polls' && extension.route
div(
id=`${extension.route}-polls`
hidden
@ -59,17 +59,17 @@ nav.jsRightMenu.segment.sm-hidden.text-disable-selection.sidebar.whitespace-norm
a(data-trans='circle.menuRight.information')
if component.extensions
for extension of component.extensions
if extension.type == 'resources'
if extension.type == 'resources' && extension.route
solid-route.segment.full(name=`${extension.route}-resources` use-id)
li.segment.full.padding-medium
span.icon.ci-file.icon-xlarge.margin-right-medium
a(data-trans='circle.menuRight.resources')
if extension.type == 'events'
if extension.type == 'events' && extension.route
solid-route.segment.full(name=`${extension.route}-events` use-id)
li.segment.full.padding-medium
span.icon.ci-appointment.icon-xlarge.margin-right-medium
a(data-trans='circle.menuRight.events')
if extension.type == 'polls'
if extension.type == 'polls' && extension.route
solid-route.segment.full(name=`${extension.route}-polls` use-id)
li.segment.full.padding-medium
span.icon.ci-list.icon-xlarge.margin-right-medium