inboxlookup_screen 1.2.3 → 1.2.5
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
|
@@ -30,7 +30,7 @@ const OrdersMasterDetail = ({ dataSource, keyExpr, token, BaseUrl, ProjectId, Fl
|
|
|
30
30
|
const [autoExpandAll, setAutoExpandAll] = useState(true);
|
|
31
31
|
const metaRef = useRef(null);
|
|
32
32
|
const [pendingSheet, setPendingSheet] = useState(null);
|
|
33
|
-
|
|
33
|
+
const [totalCount, setTotalCount] = useState(0);
|
|
34
34
|
useEffect(() => {
|
|
35
35
|
if (!ProjectId) return;
|
|
36
36
|
|
|
@@ -176,8 +176,8 @@ const OrdersMasterDetail = ({ dataSource, keyExpr, token, BaseUrl, ProjectId, Fl
|
|
|
176
176
|
body: JSON.stringify(loadOptions)
|
|
177
177
|
}
|
|
178
178
|
);
|
|
179
|
-
|
|
180
179
|
const result = await response.json();
|
|
180
|
+
setTotalCount(result.totalCount ?? 0);
|
|
181
181
|
if (requestId !== requestVersionRef.current) {
|
|
182
182
|
return { data: [], totalCount: 0 };
|
|
183
183
|
}
|
|
@@ -580,6 +580,16 @@ const OrdersMasterDetail = ({ dataSource, keyExpr, token, BaseUrl, ProjectId, Fl
|
|
|
580
580
|
|
|
581
581
|
|
|
582
582
|
</DataGrid>
|
|
583
|
+
<div
|
|
584
|
+
style={{
|
|
585
|
+
display: "flex",
|
|
586
|
+
justifyContent: "flex-end",
|
|
587
|
+
marginTop: "10px",
|
|
588
|
+
fontWeight: "bold"
|
|
589
|
+
}}
|
|
590
|
+
>
|
|
591
|
+
Total Rows: {totalCount}
|
|
592
|
+
</div>
|
|
583
593
|
{/* </div> */}
|
|
584
594
|
|
|
585
595
|
{selectedRow && (
|