@zengenti/contensis-react-base 3.0.2-beta.12 → 3.0.2-beta.13
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/cjs/forms.js +9 -6
- package/cjs/forms.js.map +1 -1
- package/esm/forms.js +9 -6
- package/esm/forms.js.map +1 -1
- package/package.json +1 -1
package/cjs/forms.js
CHANGED
|
@@ -212,7 +212,7 @@ var reducer = immer.produce((state, action) => {
|
|
|
212
212
|
formId,
|
|
213
213
|
message
|
|
214
214
|
} = action || {};
|
|
215
|
-
state[formId].status.
|
|
215
|
+
state[formId].status.messages.success = message;
|
|
216
216
|
return;
|
|
217
217
|
}
|
|
218
218
|
case SUBMIT_FORM_ERROR:
|
|
@@ -712,11 +712,14 @@ function* onFormSuccess(action) {
|
|
|
712
712
|
window.location.href = redirect.default['en-GB'];
|
|
713
713
|
}
|
|
714
714
|
if (message !== null && message !== void 0 && message.default) {
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
715
|
+
const m = message.default['en-GB'];
|
|
716
|
+
if (m) {
|
|
717
|
+
yield effects.put({
|
|
718
|
+
type: SET_SUCCESS_MESSAGE,
|
|
719
|
+
message: m,
|
|
720
|
+
formId: action.formId
|
|
721
|
+
});
|
|
722
|
+
}
|
|
720
723
|
}
|
|
721
724
|
}
|
|
722
725
|
function* onSubmitForm(action) {
|