From 4d5aa6ab2cf245169ecb1005b89365adba72b86b Mon Sep 17 00:00:00 2001 From: Alexis POYEN <punkylibre@localhost.localdomain> Date: Tue, 7 Jul 2020 13:37:36 +0200 Subject: [PATCH] Fix : refresh rounds on election deletion --- web/components/management/rounds-card.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/components/management/rounds-card.js b/web/components/management/rounds-card.js index b58847a..cd5540e 100644 --- a/web/components/management/rounds-card.js +++ b/web/components/management/rounds-card.js @@ -25,6 +25,7 @@ class Round { async mount(where) { this.ElectionModel.current_user = await Auth.GetUser(); this.RoundModel.current_user = await Auth.GetUser(); + this.RoundModel.refreshRounds(); const mountpoint = where; document.getElementById(mountpoint).innerHTML = /* HTML */ ` <header class="card-header"> @@ -38,7 +39,7 @@ class Round { `; this.mountModal("round-modal"); this.handleDom(); - this.displayRounds(); + await this.displayRounds(); } handleDom() { -- GitLab