@saltcorn/workflow-editor 1.6.0-alpha.13 → 1.6.0-alpha.14
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/dist/workflow_bundle.js +1 -1
- package/dist/workflow_bundle.js.map +1 -1
- package/package.json +1 -1
- package/src/WorkflowEditor.jsx +15 -16
package/package.json
CHANGED
package/src/WorkflowEditor.jsx
CHANGED
|
@@ -792,21 +792,20 @@ const StepDrawer = ({
|
|
|
792
792
|
<button className="btn btn-secondary" onClick={onClose}>
|
|
793
793
|
Close
|
|
794
794
|
</button>
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
)}
|
|
795
|
+
|
|
796
|
+
<button
|
|
797
|
+
className="btn btn-primary"
|
|
798
|
+
onClick={() =>
|
|
799
|
+
innerRef.current
|
|
800
|
+
?.querySelector("form")
|
|
801
|
+
?.dispatchEvent(
|
|
802
|
+
new Event("submit", { cancelable: true, bubbles: true })
|
|
803
|
+
)
|
|
804
|
+
}
|
|
805
|
+
disabled={submitting}
|
|
806
|
+
>
|
|
807
|
+
{submitting ? "Saving..." : "Save"}
|
|
808
|
+
</button>
|
|
810
809
|
</div>
|
|
811
810
|
</>
|
|
812
811
|
) : null}
|
|
@@ -1517,7 +1516,7 @@ const WorkflowEditor = ({ data }) => {
|
|
|
1517
1516
|
autoSavingRef.current = true;
|
|
1518
1517
|
try {
|
|
1519
1518
|
await submitStepForm(formEl, { closeOnSuccess: false });
|
|
1520
|
-
} catch (err) {
|
|
1519
|
+
} catch (err) {
|
|
1521
1520
|
setError(err.message);
|
|
1522
1521
|
} finally {
|
|
1523
1522
|
autoSavingRef.current = false;
|