@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/cjs/index.js
CHANGED
@@ -14127,7 +14127,7 @@ var InvestmentCreationComponent = function (props) {
|
|
14127
14127
|
style: { textAlign: "right", marginRight: 15, marginTop: 10 },
|
14128
14128
|
});
|
14129
14129
|
}
|
14130
|
-
onNavigateToProgrammeView();
|
14130
|
+
onNavigateToProgrammeView(data.programmeId);
|
14131
14131
|
return [3 /*break*/, 5];
|
14132
14132
|
case 3:
|
14133
14133
|
error_2 = _a.sent();
|
@@ -19172,11 +19172,6 @@ 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
|
-
};
|
19180
19175
|
var onCheckAllChange = function (e) {
|
19181
19176
|
var nw = e.target.checked ? statusOptions.map(function (el) { return el.value; }) : [];
|
19182
19177
|
setSelectedStatus(nw);
|
@@ -19437,8 +19432,7 @@ var CreditTransferComponent = function (props) {
|
|
19437
19432
|
], renderItem: function (item) { return (React.createElement(antd.List.Item, { onClick: item.click },
|
19438
19433
|
React.createElement(antd.Typography.Text, { className: "action-icon ".concat(item.style) }, item.icon),
|
19439
19434
|
React.createElement("span", null, item.text))); } })) : record.isRetirement &&
|
19440
|
-
(
|
19441
|
-
ministryLevelPermission(record.programmeSectoralScope)) ? (React.createElement(antd.List, { className: "action-menu", size: "small", dataSource: [
|
19435
|
+
(userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === exports.CompanyRole.GOVERNMENT ? (React.createElement(antd.List, { className: "action-menu", size: "small", dataSource: [
|
19442
19436
|
{
|
19443
19437
|
text: t("creditTransfer:recognise"),
|
19444
19438
|
icon: React.createElement(Icon__namespace.Save, null),
|