@undp/carbon-library 1.0.307-CARBON-Log-fix.1 → 1.0.307-CARBON-Sprint-57.2

Sign up to get free protection for your applications and to get access to all the features.
package/dist/esm/index.js CHANGED
@@ -18292,7 +18292,8 @@ var InvestmentManagementComponent = function (props) {
18292
18292
  isRetire = true;
18293
18293
  }
18294
18294
  if (record.status === "Pending" &&
18295
- (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.userRole) !== Role.ViewOnly) {
18295
+ (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.userRole) !== Role.ViewOnly &&
18296
+ (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyState) !== 0) {
18296
18297
  return (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyId) === record.initiatorCompanyId ? (React.createElement(List, { className: "action-menu", size: "small", dataSource: [
18297
18298
  {
18298
18299
  text: t("creditTransfer:cancel"),
@@ -18529,7 +18530,8 @@ var InvestmentManagementComponent = function (props) {
18529
18530
  ((userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) == CompanyRole.MINISTRY ||
18530
18531
  (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) == CompanyRole.GOVERNMENT ||
18531
18532
  (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) == CompanyRole.PROGRAMME_DEVELOPER) &&
18532
- userInfoState.userRole != Role.ViewOnly && (React.createElement("div", { className: "action-bar" },
18533
+ userInfoState.userRole != Role.ViewOnly &&
18534
+ userInfoState.companyState != 0 && (React.createElement("div", { className: "action-bar" },
18533
18535
  React.createElement(Button, { type: "primary", size: "large", block: true, icon: React.createElement(PlusOutlined, null), onClick: onClickAddOwnership }, t("programme:addOwnership")))))),
18534
18536
  React.createElement("div", { className: "content-card" },
18535
18537
  React.createElement(Row, null,
@@ -23845,6 +23847,9 @@ var uploadDocUserPermission = function (userInfoState, docType, programmeOwnerId
23845
23847
  permission = true;
23846
23848
  }
23847
23849
  }
23850
+ if ((userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyState) == 0) {
23851
+ permission = false;
23852
+ }
23848
23853
  return permission;
23849
23854
  };
23850
23855