@undp/carbon-library 1.0.274-CARBON-363.43 → 1.0.274-CARBON-363.48

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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 color-error" }, item.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 {