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 ccf912eca2d13cc7adfc62f37f83271f79726eb9 Author: Brendan Le Ny <bleny@codelutin.com> Date: Wed Oct 16 16:02:24 2019 +0200 Introduce methods in EditVote models refs #230 --- pollen-ui-riot-js/src/main/web/tag/poll/EditVote.tag.html | 6 +++++- pollen-ui-riot-js/src/main/web/tag/poll/EditVoteOrder.tag.html | 6 +++++- 2 files changed, 10 insertions(+), 2 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 36657324..0c96d116 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 @@ -119,7 +119,7 @@ </div> <div class="footer separator-top" if="{question && question.choices && (question.canVote || voteInEdition)}"> <div class="current-voter-actions separator-right"> - <div class="o-form-element" if={!session.isConnected()}> + <div class="o-form-element" if={mustValidateGtuToVote()}> <label class="c-field c-field--choice gtu-validation"> <input type="checkbox" required> @@ -338,6 +338,10 @@ this.error = null; }; + this.mustValidateGtuToVote = () => { + return !this.session.isConnected(); + }; + this.getVote = () => { let vote; diff --git a/pollen-ui-riot-js/src/main/web/tag/poll/EditVoteOrder.tag.html b/pollen-ui-riot-js/src/main/web/tag/poll/EditVoteOrder.tag.html index aaaa341b..22d912b3 100644 --- a/pollen-ui-riot-js/src/main/web/tag/poll/EditVoteOrder.tag.html +++ b/pollen-ui-riot-js/src/main/web/tag/poll/EditVoteOrder.tag.html @@ -106,7 +106,7 @@ </div> </Draggable> - <div class="o-form-element" if={!session.isConnected()}> + <div class="o-form-element" if={mustValidateGtuToVote()}> <label class="c-field c-field--choice gtu-validation"> <input type="checkbox" required> @@ -387,6 +387,10 @@ this.placeChoices(noAnim); }; + this.mustValidateGtuToVote = () => { + return !this.session.isConnected(); + }; + this.getVote = () => { let vote; -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.