@undp/carbon-library 1.0.124-CARBON-276.0 → 1.0.124-CARBON-323.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.js +2 -8
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +2 -8
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
@@ -14107,7 +14107,7 @@ var InvestmentCreationComponent = function (props) {
|
|
14107
14107
|
style: { textAlign: "right", marginRight: 15, marginTop: 10 },
|
14108
14108
|
});
|
14109
14109
|
}
|
14110
|
-
onNavigateToProgrammeView();
|
14110
|
+
onNavigateToProgrammeView(data.programmeId);
|
14111
14111
|
return [3 /*break*/, 5];
|
14112
14112
|
case 3:
|
14113
14113
|
error_2 = _a.sent();
|
@@ -19152,11 +19152,6 @@ 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
|
-
};
|
19160
19155
|
var onCheckAllChange = function (e) {
|
19161
19156
|
var nw = e.target.checked ? statusOptions.map(function (el) { return el.value; }) : [];
|
19162
19157
|
setSelectedStatus(nw);
|
@@ -19417,8 +19412,7 @@ var CreditTransferComponent = function (props) {
|
|
19417
19412
|
], renderItem: function (item) { return (React.createElement(List.Item, { onClick: item.click },
|
19418
19413
|
React.createElement(Typography.Text, { className: "action-icon ".concat(item.style) }, item.icon),
|
19419
19414
|
React.createElement("span", null, item.text))); } })) : record.isRetirement &&
|
19420
|
-
(
|
19421
|
-
ministryLevelPermission(record.programmeSectoralScope)) ? (React.createElement(List, { className: "action-menu", size: "small", dataSource: [
|
19415
|
+
(userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === CompanyRole.GOVERNMENT ? (React.createElement(List, { className: "action-menu", size: "small", dataSource: [
|
19422
19416
|
{
|
19423
19417
|
text: t("creditTransfer:recognise"),
|
19424
19418
|
icon: React.createElement(Icon.Save, null),
|