@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/cjs/index.js
CHANGED
@@ -19172,6 +19172,11 @@ var CreditTransferComponent = function (props) {
|
|
19172
19172
|
}); };
|
19173
19173
|
antd.Form.useForm()[0];
|
19174
19174
|
var Search = antd.Input.Search;
|
19175
|
+
var ministryLevelPermission = function (sectoralScope) {
|
19176
|
+
return ((userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === exports.CompanyRole.MINISTRY &&
|
19177
|
+
(userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.userRole) !== exports.Role.ViewOnly &&
|
19178
|
+
ministrySectoralScope.includes(sectoralScope));
|
19179
|
+
};
|
19175
19180
|
var onCheckAllChange = function (e) {
|
19176
19181
|
var nw = e.target.checked ? statusOptions.map(function (el) { return el.value; }) : [];
|
19177
19182
|
setSelectedStatus(nw);
|
@@ -19432,7 +19437,8 @@ var CreditTransferComponent = function (props) {
|
|
19432
19437
|
], renderItem: function (item) { return (React.createElement(antd.List.Item, { onClick: item.click },
|
19433
19438
|
React.createElement(antd.Typography.Text, { className: "action-icon ".concat(item.style) }, item.icon),
|
19434
19439
|
React.createElement("span", null, item.text))); } })) : record.isRetirement &&
|
19435
|
-
(userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === exports.CompanyRole.GOVERNMENT
|
19440
|
+
((userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === exports.CompanyRole.GOVERNMENT ||
|
19441
|
+
ministryLevelPermission(record.programmeSectoralScope)) ? (React.createElement(antd.List, { className: "action-menu", size: "small", dataSource: [
|
19436
19442
|
{
|
19437
19443
|
text: t("creditTransfer:recognise"),
|
19438
19444
|
icon: React.createElement(Icon__namespace.Save, null),
|