Commit 6e953de5 authored by Alexandre's avatar Alexandre

feature: missing closing cross on map popups

parent 859484c6
......@@ -39,11 +39,12 @@ export default class RiseForMap extends SIBTemplateElement {
next="action-preview-${this.uniqID}"
></sib-map>
<div id="map-${this.uniqID}" hidden></div>
<div id="action-preview-${this.uniqID}" hidden>
<sib-display
bind-resources
data-fields="status, theme.photo, name, description, date-and-location, cta"
data-fields="status, theme.photo, name, description, date-and-location, cta, close"
set-date-and-location="date, city"
......@@ -52,7 +53,10 @@ export default class RiseForMap extends SIBTemplateElement {
widget-date="rfm-display-date"
label-cta="Je participe"
label-close="🞩"
action-cta="action-detail"
action-close="map-${this.uniqID}"
></sib-display>
</div>
......@@ -70,7 +74,8 @@ export default class RiseForMap extends SIBTemplateElement {
</template>
</sib-widget>
<sib-router>
<sib-router default-route="map-${this.uniqID}">
<sib-route name="map-${this.uniqID}" hidden></sib-route>
<sib-route name="action-preview-${this.uniqID}" use-id hidden></sib-route>
</sib-router>
`;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment