This is an automated email from the git hooks/post-receive script. New commit to branch feature/april in repository pollen. See https://gitlab.nuiton.org/chorem/pollen.git commit e5ec0f5be21ef0afceec49deee0993f4d0c2ff1b Author: jcouteau <couteau@codelutin.com> Date: Thu Jan 10 13:26:51 2019 +0100 refs #233 : Results on vote page is ok --- pollen-ui-riot-js/src/main/web/tag/poll/EditVote.tag.html | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/pollen-ui-riot-js/src/main/web/tag/poll/EditVote.tag.html b/pollen-ui-riot-js/src/main/web/tag/poll/EditVote.tag.html index 089741f6..e934ad47 100644 --- a/pollen-ui-riot-js/src/main/web/tag/poll/EditVote.tag.html +++ b/pollen-ui-riot-js/src/main/web/tag/poll/EditVote.tag.html @@ -205,16 +205,21 @@ this.pollTypeCheckbox = poll2.questions[0].voteCountingTypeValue && poll2.questions[0].voteCountingTypeValue.renderType === "checkbox"; this.pollTypeSelect = poll2.questions[0].voteCountingTypeValue && poll2.questions[0].voteCountingTypeValue.renderType === "select"; this.pollTypeCoombs = poll2.questions[0].voteCountingType && poll2.questions[0].voteCountingType === 7; - this.onVoteChanged(); - this.update(); }); } else { this.pollTypeCheckbox = poll2.questions[0].voteCountingTypeValue && poll2.questions[0].voteCountingTypeValue.renderType === "checkbox"; this.pollTypeSelect = poll2.questions[0].voteCountingTypeValue && poll2.questions[0].voteCountingTypeValue.renderType === "select"; this.pollTypeCoombs = poll2.questions[0].voteCountingType && poll2.questions[0].voteCountingType === 7; - this.onVoteChanged(); - this.update(); } + this.resultsLoaded = poll2.questions[0].results !== undefined; + if (!this.resultsLoaded) { + this.poll.loadResults(poll2.questions[0].id).then(() => { + }); + } + this.onVoteChanged(); + this.update(); + + }; this.listen("poll", this.onPollChange); -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.