This is an automated email from the git hooks/post-receive script. New commit to branch feature/multi-ui in repository pollen. See https://gitlab.nuiton.org/chorem/pollen.git commit 008abb7645e49b4343e4b80d4173b1fbe86be08d Author: jcouteau <couteau@codelutin.com> Date: Mon Oct 28 10:07:29 2019 +0100 Show buttons only on multi --- pollen-ui-riot-js/src/main/web/tag/poll/Votes.tag.html | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/pollen-ui-riot-js/src/main/web/tag/poll/Votes.tag.html b/pollen-ui-riot-js/src/main/web/tag/poll/Votes.tag.html index 9a72258d..fd816e91 100644 --- a/pollen-ui-riot-js/src/main/web/tag/poll/Votes.tag.html +++ b/pollen-ui-riot-js/src/main/web/tag/poll/Votes.tag.html @@ -25,7 +25,8 @@ class="c-button c-button--info" tabindex="1" onclick={previousQuestion} - disabled={questionToVote === 0}> + disabled={questionToVote === 0} + show={this.poll.questions.length > 1}> <i class="fa fa-chevron-left " aria-hidden="true"></i> {_t.previousQuestion} </button> @@ -34,7 +35,8 @@ class="c-button c-button--info" tabindex="2" onclick={nextQuestion} - disabled={questionToVote === poll.questions.length - 1}> + disabled={questionToVote === poll.questions.length - 1} + show={this.poll.questions.length > 1}> {_t.nextQuestion} <i class="fa fa-chevron-right " aria-hidden="true"></i> </button> @@ -66,9 +68,6 @@ this.bus.trigger("multi", this.poll.questions.length > 1); } this.question = this.poll.questions[this.questionToVote]; - if (this.question) { - this.bus.trigger("question", this.question); - } this.update(); }; -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.