Sha256: 95ffef2febd823b4f649d5571e0cd33de981ef4e97aca5f35ffcdd918620749b

Contents?: true

Size: 436 Bytes

Versions: 6

Compression:

Stored size: 436 Bytes

Contents

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

$(async () => {
  const $castingVoteWrapper = $(".casting-vote-wrapper");

  const bulletinBoardClient = new Client({
    apiEndpointUrl: $castingVoteWrapper.data("apiEndpointUrl")
  });
  const messageId = $castingVoteWrapper.data("messageId");

  await bulletinBoardClient.waitForPendingMessageToBeProcessed(messageId);

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
decidim-elections-0.27.0.rc1 app/packs/src/decidim/elections/voter/casting-vote.js
decidim-elections-0.26.2 app/packs/src/decidim/elections/voter/casting-vote.js
decidim-elections-0.26.1 app/packs/src/decidim/elections/voter/casting-vote.js
decidim-elections-0.26.0 app/packs/src/decidim/elections/voter/casting-vote.js
decidim-elections-0.26.0.rc2 app/packs/src/decidim/elections/voter/casting-vote.js
decidim-elections-0.26.0.rc1 app/packs/src/decidim/elections/voter/casting-vote.js