finance-shared 0.0.19 → 0.0.20
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.
|
@@ -25366,7 +25366,8 @@ function RemarksDialog({
|
|
|
25366
25366
|
staffRoleIds = [],
|
|
25367
25367
|
dataTestId = "",
|
|
25368
25368
|
themesConfig = {},
|
|
25369
|
-
remarksCount = 0
|
|
25369
|
+
remarksCount = 0,
|
|
25370
|
+
closeOnSave = false
|
|
25370
25371
|
}) {
|
|
25371
25372
|
const {
|
|
25372
25373
|
canViewRemarks = true,
|
|
@@ -25429,6 +25430,12 @@ function RemarksDialog({
|
|
|
25429
25430
|
control,
|
|
25430
25431
|
name: "remarkType"
|
|
25431
25432
|
});
|
|
25433
|
+
useEffect(() => {
|
|
25434
|
+
if (variant === "full") {
|
|
25435
|
+
dispatch(setRemarkList([]));
|
|
25436
|
+
setLocalPendingCount(null);
|
|
25437
|
+
}
|
|
25438
|
+
}, [financeApplicationId, variant, dispatch]);
|
|
25432
25439
|
useEffect(() => {
|
|
25433
25440
|
if (variant === "full" && open && financeApplicationId) {
|
|
25434
25441
|
dispatch(getRemarkListByFinanceApplicationId({
|
|
@@ -25472,6 +25479,7 @@ function RemarksDialog({
|
|
|
25472
25479
|
const res = await dispatch(addSectionWiseRemark(requestData));
|
|
25473
25480
|
if (res.status === "success") {
|
|
25474
25481
|
reset(defaultValues$1);
|
|
25482
|
+
if (closeOnSave) handleClose();
|
|
25475
25483
|
}
|
|
25476
25484
|
} catch (error) {
|
|
25477
25485
|
console.error(error);
|
|
@@ -26043,7 +26051,8 @@ function DocumentSigningDialog({
|
|
|
26043
26051
|
digitalSignatureRole,
|
|
26044
26052
|
ColoredSubmitButton,
|
|
26045
26053
|
financeCalculation,
|
|
26046
|
-
showConfirmCheckbox = false
|
|
26054
|
+
showConfirmCheckbox = false,
|
|
26055
|
+
showTitle = true
|
|
26047
26056
|
}) {
|
|
26048
26057
|
const { t: t2 } = useTranslation("Dialog");
|
|
26049
26058
|
const open = useSelector(getIsDocumentSignatureDialogOpen);
|
|
@@ -26133,7 +26142,7 @@ function DocumentSigningDialog({
|
|
|
26133
26142
|
] }) })
|
|
26134
26143
|
] })
|
|
26135
26144
|
] }),
|
|
26136
|
-
/* @__PURE__ */ jsxs("div", { className: "flex justify-end items-center gap-10 pt-
|
|
26145
|
+
/* @__PURE__ */ jsxs("div", { className: "flex justify-end items-center gap-10 pt-20", children: [
|
|
26137
26146
|
/* @__PURE__ */ jsx(
|
|
26138
26147
|
ColoredSubmitButton,
|
|
26139
26148
|
{
|
|
@@ -26167,7 +26176,7 @@ function DocumentSigningDialog({
|
|
|
26167
26176
|
ColoredSubmitButton,
|
|
26168
26177
|
financeCalculation,
|
|
26169
26178
|
t: t2,
|
|
26170
|
-
dialogTitle: t2("PDF_PREVIEW_TITLE"),
|
|
26179
|
+
dialogTitle: showTitle ? t2("PDF_PREVIEW_TITLE") : void 0,
|
|
26171
26180
|
showConfirmCheckbox,
|
|
26172
26181
|
pdfOnly: !!signedDocumentJPDF
|
|
26173
26182
|
}
|