From 39877c01e2682f022d0975af43e49924b1fa232b Mon Sep 17 00:00:00 2001 From: Alexis POYEN <punkylibre@localhost.localdomain> Date: Wed, 17 Jun 2020 10:06:27 +0200 Subject: [PATCH] Feat : return to deks selection on vote --- web/components/vote/votes.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/web/components/vote/votes.js b/web/components/vote/votes.js index 3847e8e..f6e7b0b 100644 --- a/web/components/vote/votes.js +++ b/web/components/vote/votes.js @@ -89,7 +89,14 @@ class Vote { `; } - handleDom() {} + handleDom() { + let voteHandler = this; + document + .getElementById(`votes-return`) + .addEventListener("click", function () { + voteHandler.parent.deskRoundHandler.mount("vote-section"); + }); + } async refreshBreadCrumb() { let round = await this.RoundModel.getRound(this.RoundID); @@ -142,7 +149,6 @@ class Vote { votes = votes.filter((vote) => { return vote.DeskRoundID == voteHandler.DeskRoundID; }); - console.log(votes); let candidateLists = await this.CandidateListModel.getCandidateLists(); candidateLists = candidateLists.filter((candidateList) => { return candidateList.AreaID == voteHandler.AreaID; -- GitLab