@mseva/digit-ui-module-ndc 1.0.40 → 1.0.41
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/index.js +10 -9
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +10 -9
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -2061,6 +2061,7 @@ const ApplicationOverview = () => {
|
|
|
2061
2061
|
const state = tenantId === null || tenantId === void 0 ? void 0 : tenantId.split(".")[0];
|
|
2062
2062
|
const [showToast, setShowToast] = useState(null);
|
|
2063
2063
|
const [error, setError] = useState(null);
|
|
2064
|
+
const [getLable, setLable] = useState(false);
|
|
2064
2065
|
const {
|
|
2065
2066
|
control,
|
|
2066
2067
|
handleSubmit,
|
|
@@ -2247,9 +2248,11 @@ const ApplicationOverview = () => {
|
|
|
2247
2248
|
console.log("filterRoles====???", filterRoles);
|
|
2248
2249
|
console.log("action test", action === null || action === void 0 ? void 0 : action.action);
|
|
2249
2250
|
const checkactionApp = (action === null || action === void 0 ? void 0 : action.action) == "APPROVE";
|
|
2250
|
-
|
|
2251
|
+
console.log("filterRoles && checkactionApp", filterRoles && checkactionApp, checkactionApp, filterRoles);
|
|
2252
|
+
if (hasDuePending && checkactionApp) {
|
|
2251
2253
|
console.log("alwasy coming appprve");
|
|
2252
|
-
|
|
2254
|
+
setLable("You Can Not Approve This Application, Because It Has Pending Dues. Please Send It To Required Department");
|
|
2255
|
+
setError(true);
|
|
2253
2256
|
setShowToast(true);
|
|
2254
2257
|
return;
|
|
2255
2258
|
}
|
|
@@ -2313,11 +2316,9 @@ const ApplicationOverview = () => {
|
|
|
2313
2316
|
tenantId,
|
|
2314
2317
|
details: finalPayload
|
|
2315
2318
|
});
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
});
|
|
2320
|
-
setError("Successfully updated the status");
|
|
2319
|
+
setLable("Successfully updated the status");
|
|
2320
|
+
setError(false);
|
|
2321
|
+
setShowToast(true);
|
|
2321
2322
|
workflowDetails.revalidate();
|
|
2322
2323
|
setTimeout(() => {
|
|
2323
2324
|
history.push("/digit-ui/employee/ndc/inbox");
|
|
@@ -2528,8 +2529,8 @@ const ApplicationOverview = () => {
|
|
|
2528
2529
|
errorOne: errorOne,
|
|
2529
2530
|
closeToastOne: closeToastOne
|
|
2530
2531
|
}) : null, showToast && /*#__PURE__*/React.createElement(Toast, {
|
|
2531
|
-
error:
|
|
2532
|
-
label:
|
|
2532
|
+
error: error,
|
|
2533
|
+
label: getLable,
|
|
2533
2534
|
isDleteBtn: true,
|
|
2534
2535
|
onClose: closeToast
|
|
2535
2536
|
}), getLoader && /*#__PURE__*/React.createElement(Loader, {
|