This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository pollen. See https://gitlab.nuiton.org/chorem/pollen.git commit b5e83c3363a127ad5910c092caeaae6d20d9c3f0 Author: Sylvain Bavencoff <bavencoff@codelutin.com> Date: Wed Oct 18 17:54:56 2017 +0200 desactivé le bouton "enregistrer" pendant la création du sondage coté serveur (ref #162) --- pollen-ui-riot-js/src/main/web/tag/poll/EditPoll.tag.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pollen-ui-riot-js/src/main/web/tag/poll/EditPoll.tag.html b/pollen-ui-riot-js/src/main/web/tag/poll/EditPoll.tag.html index 81e520f1..4092b293 100644 --- a/pollen-ui-riot-js/src/main/web/tag/poll/EditPoll.tag.html +++ b/pollen-ui-riot-js/src/main/web/tag/poll/EditPoll.tag.html @@ -94,6 +94,7 @@ require("../components/HumanInput.tag.html"); if={!form.creation || form.step === form.steps.length - 1} class="c-button c-button--info" show={!form.model.closed} + disabled={savePollWaiting} onclick={savePoll}> <i class="fa fa-{form.creation ? 'plus' : 'check'}" aria-hidden="true"></i> {__.save} @@ -164,8 +165,10 @@ require("../components/HumanInput.tag.html"); this.savePoll = () => { this.callAfterSubmit = () => { + this.savePollWaiting = true; let errorFn = errors => { this.bus.trigger("message", errors, "error"); + this.savePollWaiting = false; this.update(); }; if (this.form.creation) { @@ -178,6 +181,7 @@ require("../components/HumanInput.tag.html"); } else { this.form.save().then(() => { this.showSummary = true; + this.savePollWaiting = false; this.update(); this.bus.trigger("successMessage", this._l("saveSuccess", this.form.model.title)); this.bus.trigger("pageChanged", this.form.model.title); -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.