Sha256: 0054321556d1deeb81a67ef503083986e6b03bb7cd4fbe3e24c0760fd6279479

Contents?: true

Size: 439 Bytes

Versions: 6

Compression:

Stored size: 439 Bytes

Contents

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

6 entries across 6 versions & 1 rubygems

Version Path
decidim-elections-0.27.0.rc1 app/packs/src/decidim/elections/admin/pending_action.js
decidim-elections-0.26.2 app/packs/src/decidim/elections/admin/pending_action.js
decidim-elections-0.26.1 app/packs/src/decidim/elections/admin/pending_action.js
decidim-elections-0.26.0 app/packs/src/decidim/elections/admin/pending_action.js
decidim-elections-0.26.0.rc2 app/packs/src/decidim/elections/admin/pending_action.js
decidim-elections-0.26.0.rc1 app/packs/src/decidim/elections/admin/pending_action.js