Sha256: 5a23734b6ec97dc9135e231fad6634fdb1427418700bd6c6688c36316d096696
Contents?: true
Size: 599 Bytes
Versions: 8
Compression:
Stored size: 599 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 $castingVoteWrapper = $("#casting-vote-wrapper"); if ($castingVoteWrapper.length) { 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
8 entries across 8 versions & 1 rubygems