feature: add displayStartEndDates poll option

This commit is contained in:
Sylvain Lehmann 2021-06-01 17:00:42 +02:00 committed by Jean-Baptiste Pasquier
parent 3c93bc191b
commit 3127336a9f
3 changed files with 9 additions and 1 deletions

View File

@ -548,10 +548,17 @@ On `config.json`:
"pollRangeTags": "http://server.url/tags/", "pollRangeTags": "http://server.url/tags/",
"pollRangeCircles": "http://server.url/circles/", "pollRangeCircles": "http://server.url/circles/",
"uploads": "http://server.url/upload/" "uploads": "http://server.url/upload/"
},
"parameters": {
"displayStartEndDates": false
} }
} }
``` ```
Where:
* `parameters.displayStartEndDates` display or not the start and the end date of polls
### Project ### Project
Project are a private group chat including Customer and Business Provider management. Project are a private group chat including Customer and Business Provider management.

View File

@ -48,7 +48,7 @@ if componentSet.has("notification")
//- script(type="module" src="/lib/sib-notifications/index.js" defer) //- script(type="module" src="/lib/sib-notifications/index.js" defer)
if componentSet.has("polls") if componentSet.has("polls")
script(type="module" src="https://cdn.skypack.dev/@startinblox/component-poll@3.0" defer) script(type="module" src="https://cdn.skypack.dev/@startinblox/component-poll@3.1" defer)
//- script(type="module" src="/lib/solid-poll/index.js" defer) //- script(type="module" src="/lib/solid-poll/index.js" defer)
if componentSet.has("profileDirectory") if componentSet.has("profileDirectory")

View File

@ -4,5 +4,6 @@ solid-poll(
range-tags=component.endpoints.pollRangeTags range-tags=component.endpoints.pollRangeTags
range-circles=component.endpoints.pollRangeCircles range-circles=component.endpoints.pollRangeCircles
upload-dir=component.endpoints.uploads upload-dir=component.endpoints.uploads
display-start-end-date=component.parameters.displayStartEndDates
uniq=component.uniq uniq=component.uniq
) )