@djb25/digit-ui-module-vendor 1.0.76 → 1.0.77
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 +3 -23
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +3 -23
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -1723,20 +1723,6 @@ const VendorInbox = props => {
|
|
|
1723
1723
|
}
|
|
1724
1724
|
});
|
|
1725
1725
|
};
|
|
1726
|
-
const onSelectAdd = () => {
|
|
1727
|
-
switch (props.selectedTab) {
|
|
1728
|
-
case "VENDOR":
|
|
1729
|
-
return history.push("/digit-ui/" + userType + "/vendor/registry/new-vendor");
|
|
1730
|
-
case "VEHICLE":
|
|
1731
|
-
return history.push("/digit-ui/" + userType + "/vendor/registry/new-vehicle");
|
|
1732
|
-
case "DRIVER":
|
|
1733
|
-
return history.push("/digit-ui/" + userType + "/vendor/registry/new-driver");
|
|
1734
|
-
case "SUPERVISOR":
|
|
1735
|
-
return history.push("/digit-ui/" + userType + "/vendor/registry/new-supervisor");
|
|
1736
|
-
case "SURVEYOR":
|
|
1737
|
-
return history.push("/digit-ui/" + userType + "/vendor/registry/new-surveyor");
|
|
1738
|
-
}
|
|
1739
|
-
};
|
|
1740
1726
|
const vendorIds = React.useMemo(() => {
|
|
1741
1727
|
if (props.selectedTab === "VENDOR") {
|
|
1742
1728
|
return (tableData === null || tableData === void 0 ? void 0 : tableData.map(row => row.id)) || [];
|
|
@@ -2166,7 +2152,8 @@ const VendorInbox = props => {
|
|
|
2166
2152
|
Cell: _ref28 => {
|
|
2167
2153
|
var _row$original16;
|
|
2168
2154
|
let row = _ref28.row;
|
|
2169
|
-
|
|
2155
|
+
const zoneId = (_row$original16 = row.original) === null || _row$original16 === void 0 ? void 0 : _row$original16.assignedZoneId;
|
|
2156
|
+
return /*#__PURE__*/React.createElement("div", null, zoneId ? t(zoneId) : "NA");
|
|
2170
2157
|
}
|
|
2171
2158
|
}, {
|
|
2172
2159
|
Header: t("ES_VENDOR_SUPERVISOR_AGENCY_NAME") || "Agency Name",
|
|
@@ -2512,17 +2499,14 @@ const VendorInbox = props => {
|
|
|
2512
2499
|
let emptyButtonText = "";
|
|
2513
2500
|
if (props.selectedTab === "VENDOR") {
|
|
2514
2501
|
emptyCardText = "ES_FSM_REGISTRY_EMPTY_CARD_VENDOR";
|
|
2515
|
-
emptyButtonText = "ES_FSM_REGISTRY_EMPTY_BUTTON_VENDOR";
|
|
2516
2502
|
} else if (props.selectedTab === "VEHICLE") {
|
|
2517
2503
|
emptyCardText = "ES_FSM_REGISTRY_EMPTY_CARD_VEHICLE";
|
|
2518
|
-
emptyButtonText = "ES_FSM_REGISTRY_EMPTY_BUTTON_VEHICLE";
|
|
2519
2504
|
} else if (props.selectedTab === "SUPERVISOR") {
|
|
2520
2505
|
emptyCardText = "ES_FSM_REGISTRY_EMPTY_CARD_SUPERVISOR";
|
|
2521
2506
|
} else if (props.selectedTab === "SURVEYOR") {
|
|
2522
2507
|
emptyCardText = "ES_FSM_REGISTRY_EMPTY_CARD_SURVEYOR";
|
|
2523
2508
|
} else {
|
|
2524
2509
|
emptyCardText = "ES_FSM_REGISTRY_EMPTY_CARD_DRIVER";
|
|
2525
|
-
emptyButtonText = "ES_FSM_REGISTRY_EMPTY_BUTTON_DRIVER";
|
|
2526
2510
|
}
|
|
2527
2511
|
result = /*#__PURE__*/React.createElement(Card, {
|
|
2528
2512
|
className: "flex-center flex-box"
|
|
@@ -2531,11 +2515,7 @@ const VendorInbox = props => {
|
|
|
2531
2515
|
marginTop: "50px",
|
|
2532
2516
|
marginBottom: "25px"
|
|
2533
2517
|
}
|
|
2534
|
-
}, t(emptyCardText)), emptyButtonText
|
|
2535
|
-
className: "",
|
|
2536
|
-
label: t(emptyButtonText),
|
|
2537
|
-
onSubmit: onSelectAdd
|
|
2538
|
-
}));
|
|
2518
|
+
}, t(emptyCardText)), emptyButtonText );
|
|
2539
2519
|
} else if (tableData.length > 0) {
|
|
2540
2520
|
result = /*#__PURE__*/React.createElement(ApplicationTable, {
|
|
2541
2521
|
className: "table",
|