mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
Change deactivate button messaging, add scim check
This commit is contained in:
@@ -165,6 +165,7 @@ export const OrgMembersSection = () => {
|
|||||||
(popUp?.deactivateMember?.data as { orgMembershipId: string })?.orgMembershipId
|
(popUp?.deactivateMember?.data as { orgMembershipId: string })?.orgMembershipId
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
buttonText="Deactivate"
|
||||||
/>
|
/>
|
||||||
<UpgradePlanModal
|
<UpgradePlanModal
|
||||||
isOpen={popUp.upgradePlan.isOpen}
|
isOpen={popUp.upgradePlan.isOpen}
|
||||||
|
|||||||
@@ -293,7 +293,7 @@ export const OrgMembersTable = ({ handlePopUpOpen, setCompleteInviteLink }: Prop
|
|||||||
onClick={async (e) => {
|
onClick={async (e) => {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
|
|
||||||
if (currentOrg?.authEnforced) {
|
if (currentOrg?.scimEnabled) {
|
||||||
createNotification({
|
createNotification({
|
||||||
text: "You cannot manage users from Infisical when org-level auth is enforced for your organization",
|
text: "You cannot manage users from Infisical when org-level auth is enforced for your organization",
|
||||||
type: "error"
|
type: "error"
|
||||||
@@ -338,7 +338,7 @@ export const OrgMembersTable = ({ handlePopUpOpen, setCompleteInviteLink }: Prop
|
|||||||
onClick={(e) => {
|
onClick={(e) => {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
|
|
||||||
if (currentOrg?.authEnforced) {
|
if (currentOrg?.scimEnabled) {
|
||||||
createNotification({
|
createNotification({
|
||||||
text: "You cannot manage users from Infisical when org-level auth is enforced for your organization",
|
text: "You cannot manage users from Infisical when org-level auth is enforced for your organization",
|
||||||
type: "error"
|
type: "error"
|
||||||
|
|||||||
@@ -259,6 +259,7 @@ export const UserPage = withPermission(
|
|||||||
(popUp?.deactivateMember?.data as { orgMembershipId: string })?.orgMembershipId
|
(popUp?.deactivateMember?.data as { orgMembershipId: string })?.orgMembershipId
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
buttonText="Deactivate"
|
||||||
/>
|
/>
|
||||||
<UpgradePlanModal
|
<UpgradePlanModal
|
||||||
isOpen={popUp.upgradePlan.isOpen}
|
isOpen={popUp.upgradePlan.isOpen}
|
||||||
|
|||||||
Reference in New Issue
Block a user