Skip to content

Commit d2cdbb7

Browse files
committed
show the header and update the wizard
1 parent 64dbd65 commit d2cdbb7

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • decidim-elections/app/packs/src/decidim/elections/voter

decidim-elections/app/packs/src/decidim/elections/voter/new-vote.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,11 @@ $(async () => {
4545
castOrAuditBallot({ encryptedData, encryptedDataHash }) {
4646
$voteWrapper.find("#step-encrypting").attr("hidden", true);
4747
$ballotHash.text(encryptedDataHash);
48+
49+
// show the next step
4850
$voteWrapper.find("#step-ballot_decision").attr("hidden", false);
51+
// simulates a toggle click, in order to update the wizard step
52+
document.dispatchEvent(new Event("on:toggle"));
4953

5054
const $form = $("form.new_vote");
5155
$("#vote_encrypted_data", $form).val(encryptedData);

0 commit comments

Comments
 (0)