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

Feat : empty Candidates when deleting a CandidateList

parent 4b6d59ec
No related merge requests found
......@@ -529,7 +529,8 @@ class CandidateList {
async deleteCandidateList(candidateList) {
await this.CandidateListModel.deleteCandidateList(candidateList.ID);
await this.displayCandidateLists();
// TODO empty Candidates
this.emptyCandidate();
this.displayCandidateLists();
}
async saveCandidate(candidateID) {
......@@ -560,6 +561,10 @@ class CandidateList {
emptyCandidateList() {
this.area = null;
document.getElementById("candidate-lists-list").innerHTML = "";
}
emptyCandidate(){
this.candidateList = null;
document.getElementById("candidate-list").innerHTML = "";
}
......
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