@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/cjs/index.js CHANGED
@@ -18313,7 +18313,8 @@ var InvestmentManagementComponent = function (props) {
18313
18313
  isRetire = true;
18314
18314
  }
18315
18315
  if (record.status === "Pending" &&
18316
- (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.userRole) !== exports.Role.ViewOnly) {
18316
+ (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.userRole) !== exports.Role.ViewOnly &&
18317
+ (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyState) !== 0) {
18317
18318
  return (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyId) === record.initiatorCompanyId ? (React.createElement(antd.List, { className: "action-menu", size: "small", dataSource: [
18318
18319
  {
18319
18320
  text: t("creditTransfer:cancel"),
@@ -18550,7 +18551,8 @@ var InvestmentManagementComponent = function (props) {
18550
18551
  ((userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) == exports.CompanyRole.MINISTRY ||
18551
18552
  (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) == exports.CompanyRole.GOVERNMENT ||
18552
18553
  (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) == exports.CompanyRole.PROGRAMME_DEVELOPER) &&
18553
- userInfoState.userRole != exports.Role.ViewOnly && (React.createElement("div", { className: "action-bar" },
18554
+ userInfoState.userRole != exports.Role.ViewOnly &&
18555
+ userInfoState.companyState != 0 && (React.createElement("div", { className: "action-bar" },
18554
18556
  React.createElement(antd.Button, { type: "primary", size: "large", block: true, icon: React.createElement(icons.PlusOutlined, null), onClick: onClickAddOwnership }, t("programme:addOwnership")))))),
18555
18557
  React.createElement("div", { className: "content-card" },
18556
18558
  React.createElement(antd.Row, null,
@@ -23866,6 +23868,9 @@ var uploadDocUserPermission = function (userInfoState, docType, programmeOwnerId
23866
23868
  permission = true;
23867
23869
  }
23868
23870
  }
23871
+ if ((userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyState) == 0) {
23872
+ permission = false;
23873
+ }
23869
23874
  return permission;
23870
23875
  };
23871
23876