@undp/carbon-library 1.0.274-CARBON-363.44 → 1.0.274-CARBON-363.48
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.js +12 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +12 -1
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
@@ -26878,6 +26878,15 @@ var NdcDetailsComponent = function (props) {
|
|
26878
26878
|
_a.sent();
|
26879
26879
|
return [2 /*return*/];
|
26880
26880
|
case 4:
|
26881
|
+
if (!updatedFields) {
|
26882
|
+
setEditingKey(null);
|
26883
|
+
return [2 /*return*/];
|
26884
|
+
}
|
26885
|
+
else if (updatedFields.kpi === row.kpi &&
|
26886
|
+
updatedFields.nationalPlanObjective === row.nationalPlanObjective) {
|
26887
|
+
setEditingKey(null);
|
26888
|
+
return [2 /*return*/];
|
26889
|
+
}
|
26881
26890
|
updatedItem = __assign(__assign({}, row), updatedFields);
|
26882
26891
|
if (!(updatedItem.status === NdcDetailsActionStatus.New)) return [3 /*break*/, 6];
|
26883
26892
|
if (isGovernmentUser &&
|
@@ -26923,6 +26932,7 @@ var NdcDetailsComponent = function (props) {
|
|
26923
26932
|
{
|
26924
26933
|
text: t("ndc:approve"),
|
26925
26934
|
icon: React.createElement(Icon__namespace.BoxArrowInDown, null),
|
26935
|
+
style: "color-primary",
|
26926
26936
|
click: function () {
|
26927
26937
|
setActionInfo({
|
26928
26938
|
action: "Approve",
|
@@ -26937,6 +26947,7 @@ var NdcDetailsComponent = function (props) {
|
|
26937
26947
|
{
|
26938
26948
|
text: t("ndc:reject"),
|
26939
26949
|
icon: React.createElement(Icon__namespace.XOctagon, null),
|
26950
|
+
style: "color-error",
|
26940
26951
|
click: function () {
|
26941
26952
|
setActionInfo({
|
26942
26953
|
action: "Reject",
|
@@ -26949,7 +26960,7 @@ var NdcDetailsComponent = function (props) {
|
|
26949
26960
|
},
|
26950
26961
|
},
|
26951
26962
|
], renderItem: function (item) { return (React.createElement(antd.List.Item, { onClick: item.click },
|
26952
|
-
React.createElement(antd.Typography.Text, { className: "action-icon
|
26963
|
+
React.createElement(antd.Typography.Text, { className: "action-icon ".concat(item.style) }, item.icon),
|
26953
26964
|
React.createElement("span", null, item.text))); } }));
|
26954
26965
|
}
|
26955
26966
|
else {
|