Sha256: ca0423f2d6ed082a73998eb572344195424b7cfc9299f75ebcf19f0ff44a0984
Contents?: true
Size: 549 Bytes
Versions: 18
Compression:
Stored size: 549 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"; $(() => { const $form = $("form.step"); const $pendingAction = $form.find("#pending_action"); const bulletinBoardClient = new Client({ apiEndpointUrl: $pendingAction.data("apiEndpointUrl") }); const messageId = $pendingAction.data("messageId"); bulletinBoardClient.waitForPendingMessageToBeProcessed(messageId).then(() => { $form.trigger("submit"); }); });
Version data entries
18 entries across 18 versions & 1 rubygems