Skip to content
Snippets Groups Projects
Commit 799a81ae authored by Alexis Poyen's avatar Alexis Poyen
Browse files

Feat : On delete redisplay the Rounds List

parent 4c69efe8
No related branches found
No related tags found
No related merge requests found
......@@ -561,6 +561,7 @@ class CandidateList {
emptyCandidateList() {
this.area = null;
document.getElementById("candidate-lists-list").innerHTML = "";
this.emptyCandidate();
}
......
......@@ -325,6 +325,12 @@ class RoundDesk {
});
}
emptyDesks() {
this.round = null;
document.getElementById("desk-round").innerHTML = ""
this.emptyDesksDetails();
}
emptyDesksDetails() {
this.desk = null;
document.getElementById("desk-round-details").innerHTML = "";
......
......@@ -270,16 +270,12 @@ class Round {
await this.displayRounds();
Common.toggleModal("round-modal", "round-modal-card");
this.activateRound(round);
// TODO open desks
// TODO open candidateLists
return round;
}
async deleteRound(round) {
await this.RoundModel.deleteRound(round.ID);
await this.displayRounds();
// TODO empty desks
// TODO empty candidateLists
document.getElementById("display-rounds").click();
document
.getElementById("candidate-list-new")
.setAttribute("disabled", "true");
......
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