@saltcorn/builder 1.4.0-beta.7 → 1.4.0-beta.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saltcorn/builder",
3
- "version": "1.4.0-beta.7",
3
+ "version": "1.4.0-beta.8",
4
4
  "description": "Drag and drop view builder for Saltcorn, open-source no-code platform",
5
5
  "main": "index.js",
6
6
  "homepage": "https://saltcorn.com",
@@ -20,7 +20,7 @@
20
20
  "@babel/preset-react": "7.24.7",
21
21
  "@craftjs/core": "0.1.0-beta.20",
22
22
  "@craftjs/utils": "0.1.0-beta.20",
23
- "@saltcorn/common-code": "1.4.0-beta.7",
23
+ "@saltcorn/common-code": "1.4.0-beta.8",
24
24
  "saltcorn-craft-layers-noeye": "0.1.0-beta.22",
25
25
  "@fonticonpicker/react-fonticonpicker": "1.2.0",
26
26
  "@fortawesome/fontawesome-svg-core": "1.2.34",
@@ -230,8 +230,6 @@ const ActionSettings = () => {
230
230
  JSON.stringify(configuration?.steps?.[use_setting_action_n]),
231
231
  ]);
232
232
 
233
- const actionFlags = (options.actionAttributes || {})[name] || {};
234
-
235
233
  return (
236
234
  <div>
237
235
  <table className="w-100">
@@ -353,18 +351,16 @@ const ActionSettings = () => {
353
351
  />
354
352
  <label className="form-check-label">Spinner on click</label>
355
353
  </div>
356
- {actionFlags.supportsAsync ? (
357
- <div className="form-check">
358
- <input
359
- className="form-check-input"
360
- name="block"
361
- type="checkbox"
362
- checked={run_async}
363
- onChange={setAProp("run_async", { checked: true })}
364
- />
365
- <label className="form-check-label">Run async</label>
366
- </div>
367
- ) : null}
354
+ <div className="form-check">
355
+ <input
356
+ className="form-check-input"
357
+ name="block"
358
+ type="checkbox"
359
+ checked={run_async}
360
+ onChange={setAProp("run_async", { checked: true })}
361
+ />
362
+ <label className="form-check-label">Run async</label>
363
+ </div>
368
364
  {action_style !== "on_page_load" ? (
369
365
  <BlockSetting block={block} setProp={setProp} />
370
366
  ) : null}