Skip to content
Snippets Groups Projects
Commit 39877c01 authored by Alexis POYEN's avatar Alexis POYEN
Browse files

Feat : return to deks selection on vote

parent e1ce07e2
No related branches found
No related tags found
1 merge request!42Resolve "Capture votes"
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment