bugfix: Use correct circle endpoints for events and resources

This commit is contained in:
Fabien Quatravaux 2021-03-02 23:42:34 +01:00
parent db481408a4
commit e68a2f7631
4 changed files with 8 additions and 8 deletions

View File

@ -1,7 +1,7 @@
div.whitespace-normal div.whitespace-normal
solid-event(data-src=`${component.endpoints.events}` solid-event(data-src=`${component.endpoints.events}`
range-event-type=`${component.endpoints.typeevents}` range-event-type=`${component.endpoints.typeevents}`
range-event-circle=`${component.endpoints.circles}` range-event-circle=`${getComponent('circles').endpoints.get}/`
upload-dir=`${component.endpoints.uploads}` upload-dir=`${component.endpoints.uploads}`
id-prefix='default' id-prefix='default'
) )

View File

@ -2,7 +2,7 @@ div.whitespace-normal
solid-resource(data-src=`${component.endpoints.resources}` solid-resource(data-src=`${component.endpoints.resources}`
range-resource-type=`${component.endpoints.resourcestypes}` range-resource-type=`${component.endpoints.resourcestypes}`
range-resource-keyword=`${component.endpoints.resourceskeywords}` range-resource-keyword=`${component.endpoints.resourceskeywords}`
range-resource-circle=`${component.endpoints.circles}` range-resource-circle=`${getComponent('circles').endpoints.get}/`
associated-circle-label="" associated-circle-label=""
data-trans=`associated-circle-label=${component.parameters && component.parameters.associatedName ? component.parameters.associatedName : 'circle.extensions.associated'}` data-trans=`associated-circle-label=${component.parameters && component.parameters.associatedName ? component.parameters.associatedName : 'circle.extensions.associated'}`
upload-dir=`${component.endpoints.uploads}` upload-dir=`${component.endpoints.uploads}`

View File

@ -3,7 +3,7 @@ solid-event(
bind-resources bind-resources
nested-field="events" nested-field="events"
range-event-type=`${component.extensions.find(c => c.type=='events').endpoints.typeevents}` range-event-type=`${component.extensions.find(c => c.type=='events').endpoints.typeevents}`
range-event-circle=`${component.endpoints.get}` range-event-circle=`${component.endpoints.get}/`
upload-dir=`${component.extensions.find(c => c.type=='events').endpoints.uploads}` upload-dir=`${component.extensions.find(c => c.type=='events').endpoints.uploads}`
id-prefix=`${component.route}` id-prefix=`${component.route}`
uniq=component.uniq uniq=component.uniq

View File

@ -2,9 +2,9 @@ solid-resource(
class='w700' class='w700'
bind-resources bind-resources
nested-field="resources" nested-field="resources"
range-resource-type=`${component.get('resources').endpoints.resourcestypes}` range-resource-type=`${component.extensions.find(c => c.type=='resources').endpoints.resourcestypes}`
range-resource-keyword=`${component.get('resources').endpoints.resourceskeywords}` range-resource-keyword=`${component.extensions.find(c => c.type=='resources').endpoints.resourceskeywords}`
range-resource-circle=`${component.endpoints.get}` range-resource-circle=`${component.endpoints.get}/`
upload-dir=`${component.get('resources').endpoints.uploads}` upload-dir=`${component.extensions.find(c => c.type=='resources').endpoints.uploads}`
id-prefix='circles' id-prefix='circles'
) )