This is an automated email from the git hooks/post-receive script. New commit to branch feature/232-miseAJourAutoSondage in repository pollen. See https://gitlab.nuiton.org/chorem/pollen.git commit 533b5365283b2a0cc4962011bc21be568a265f94 Author: jcouteau <couteau@codelutin.com> Date: Tue Dec 3 12:15:24 2019 +0100 Prevent reloading when vote is closed --- pollen-ui-riot-js/src/main/web/tag/poll/Poll.tag.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pollen-ui-riot-js/src/main/web/tag/poll/Poll.tag.html b/pollen-ui-riot-js/src/main/web/tag/poll/Poll.tag.html index c46a6f5f..6a15b619 100644 --- a/pollen-ui-riot-js/src/main/web/tag/poll/Poll.tag.html +++ b/pollen-ui-riot-js/src/main/web/tag/poll/Poll.tag.html @@ -208,7 +208,7 @@ this.refresh(); this.refresh = () => { - if (this.poll) { + if (this.poll && this.poll.questions[0] && this.poll.questions[0].canVote) { let promise = this.poll.reloadPoll(); promise.then(poll2 => { this.poll = poll2; -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.