@undp/carbon-library 1.0.123 → 1.0.124-CARBON-276.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.js +7 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +7 -1
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
@@ -19152,6 +19152,11 @@ var CreditTransferComponent = function (props) {
|
|
19152
19152
|
}); };
|
19153
19153
|
Form.useForm()[0];
|
19154
19154
|
var Search = Input.Search;
|
19155
|
+
var ministryLevelPermission = function (sectoralScope) {
|
19156
|
+
return ((userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === CompanyRole.MINISTRY &&
|
19157
|
+
(userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.userRole) !== Role.ViewOnly &&
|
19158
|
+
ministrySectoralScope.includes(sectoralScope));
|
19159
|
+
};
|
19155
19160
|
var onCheckAllChange = function (e) {
|
19156
19161
|
var nw = e.target.checked ? statusOptions.map(function (el) { return el.value; }) : [];
|
19157
19162
|
setSelectedStatus(nw);
|
@@ -19412,7 +19417,8 @@ var CreditTransferComponent = function (props) {
|
|
19412
19417
|
], renderItem: function (item) { return (React.createElement(List.Item, { onClick: item.click },
|
19413
19418
|
React.createElement(Typography.Text, { className: "action-icon ".concat(item.style) }, item.icon),
|
19414
19419
|
React.createElement("span", null, item.text))); } })) : record.isRetirement &&
|
19415
|
-
(userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === CompanyRole.GOVERNMENT
|
19420
|
+
((userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === CompanyRole.GOVERNMENT ||
|
19421
|
+
ministryLevelPermission(record.programmeSectoralScope)) ? (React.createElement(List, { className: "action-menu", size: "small", dataSource: [
|
19416
19422
|
{
|
19417
19423
|
text: t("creditTransfer:recognise"),
|
19418
19424
|
icon: React.createElement(Icon.Save, null),
|