pixelize-design-library 2.3.26 → 2.3.28
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OrganizationDetails.d.ts","sourceRoot":"","sources":["../../../src/Components/OrganizationDetails/OrganizationDetails.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAoCjD,OAAO,EAEL,wBAAwB,EAEzB,MAAM,4BAA4B,CAAC;AAwCpC,QAAA,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,
|
|
1
|
+
{"version":3,"file":"OrganizationDetails.d.ts","sourceRoot":"","sources":["../../../src/Components/OrganizationDetails/OrganizationDetails.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAoCjD,OAAO,EAEL,wBAAwB,EAEzB,MAAM,4BAA4B,CAAC;AAwCpC,QAAA,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CAqf3D,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -104,8 +104,9 @@ const OrganizationDetails = ({ activeOrganizations, invitedOrganizations, isLoad
|
|
|
104
104
|
const renderActiveCard = (item) => {
|
|
105
105
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
106
106
|
const isSwitching = switchingOrgIds.includes(item.orgId);
|
|
107
|
-
const isProtected = item.defaultOrg === 1;
|
|
108
107
|
const canEdit = item.roleName === "Super Admin";
|
|
108
|
+
const canProtect = item.roleName !== "Super Admin";
|
|
109
|
+
const isProtected = item.defaultOrg === 1 || canProtect;
|
|
109
110
|
const isEditingThis = canEdit && editingOrgId === item.orgId;
|
|
110
111
|
const isSavingThis = editingOrgIds.includes(item.orgId);
|
|
111
112
|
return ((0, jsx_runtime_1.jsxs)(react_2.Box, { ...cardSx, p: 3, position: "relative", transition: "all 0.2s ease", _hover: {
|