impaktapps-ui-builder 0.0.334 → 0.0.335
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
|
@@ -9,15 +9,21 @@ export function submitPageHandlerProvider(store, service, submitHandler,pageNam
|
|
|
9
9
|
return {
|
|
10
10
|
submitPageHandler: async function () {
|
|
11
11
|
if (_.isEmpty(store.ctx.core.errors)) {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
12
|
+
console.log("entered submitPageHandler if condition");
|
|
13
|
+
try {
|
|
14
|
+
const saveReturn = await submitHandler(store, service);
|
|
15
|
+
console.log("saveReturnnn");
|
|
16
|
+
|
|
17
|
+
localStorage.removeItem("pageFormdata");
|
|
18
|
+
store.navigate(pageName || -1);
|
|
19
|
+
store.setNotify({
|
|
20
|
+
SuccessMessage: "Submit Successfully",
|
|
21
|
+
Success: true,
|
|
22
|
+
});
|
|
23
|
+
} catch (error) {
|
|
24
|
+
// Handle any errors from submitHandler
|
|
25
|
+
console.error("Error in submitHandler:", error);
|
|
26
|
+
}
|
|
21
27
|
} else {
|
|
22
28
|
store.setValidation("ValidateAndShow");
|
|
23
29
|
store.setNotify({
|