Sha256: c2c64ac6abb1524a27be454d7e694e061017cd80b8e2b5d89835dd7d36dcdbea

Contents?: true

Size: 743 Bytes

Versions: 18

Compression:

Stored size: 743 Bytes

Contents

// show a message to the user if comunication is lost
import "src/decidim/elections/broken_promises_handler";

import { Client } from "@decidim/decidim-bulletin_board";

$(async () => {
  const $inPersonVoteWrapper = $(".in-person-vote-wrapper");
  if ($inPersonVoteWrapper.length > 0) {
    const bulletinBoardClient = new Client({
      apiEndpointUrl: $inPersonVoteWrapper.data("apiEndpointUrl")
    });
    const messageId = $inPersonVoteWrapper.data("messageId");

    await bulletinBoardClient.waitForPendingMessageToBeProcessed(messageId);

    $("form.update_vote_status").trigger("submit");
  }

  $(".js-verify-document").on("click", () => {
    $("#verify-document").hide();
    $("#complete-voting").removeClass("hide");
  });
});

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
decidim-elections-0.27.9 app/packs/src/decidim/votings/in-person-vote.js
decidim-elections-0.27.8 app/packs/src/decidim/votings/in-person-vote.js
decidim-elections-0.27.7 app/packs/src/decidim/votings/in-person-vote.js
decidim-elections-0.27.6 app/packs/src/decidim/votings/in-person-vote.js
decidim-elections-0.26.10 app/packs/src/decidim/votings/in-person-vote.js
decidim-elections-0.26.9 app/packs/src/decidim/votings/in-person-vote.js
decidim-elections-0.27.5 app/packs/src/decidim/votings/in-person-vote.js
decidim-elections-0.26.8 app/packs/src/decidim/votings/in-person-vote.js
decidim-elections-0.27.4 app/packs/src/decidim/votings/in-person-vote.js
decidim-elections-0.27.3 app/packs/src/decidim/votings/in-person-vote.js
decidim-elections-0.26.7 app/packs/src/decidim/votings/in-person-vote.js
decidim-elections-0.26.5 app/packs/src/decidim/votings/in-person-vote.js
decidim-elections-0.27.2 app/packs/src/decidim/votings/in-person-vote.js
decidim-elections-0.27.1 app/packs/src/decidim/votings/in-person-vote.js
decidim-elections-0.26.4 app/packs/src/decidim/votings/in-person-vote.js
decidim-elections-0.27.0 app/packs/src/decidim/votings/in-person-vote.js
decidim-elections-0.26.3 app/packs/src/decidim/votings/in-person-vote.js
decidim-elections-0.27.0.rc2 app/packs/src/decidim/votings/in-person-vote.js