feature: add displayStartEndDates poll option

This commit is contained in:
Sylvain Lehmann 2021-06-01 17:00:42 +02:00
parent 2343bdd5ea
commit 75c0b15179
3 changed files with 9 additions and 1 deletions

View File

@ -548,10 +548,17 @@ On `config.json`:
"pollRangeTags": "http://server.url/tags/",
"pollRangeCircles": "http://server.url/circles/",
"uploads": "http://server.url/upload/"
},
"parameters": {
"displayStartEndDates": false
}
}
```
Where:
* `parameters.displayStartEndDates` display or not the start and the end date of polls
### Project
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)
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)
if componentSet.has("profileDirectory")

View File

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