mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-05 21:26:40 +00:00
misc: addressed review comments
This commit is contained in:
+2
-9
@@ -47,17 +47,13 @@ export const OrgOIDCSection = (): JSX.Element => {
|
|||||||
});
|
});
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error(err);
|
console.error(err);
|
||||||
createNotification({
|
|
||||||
text: `Failed to ${value ? "enable" : "disable"} OIDC SSO`,
|
|
||||||
type: "error"
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleEnforceOrgAuthToggle = async (value: boolean) => {
|
const handleEnforceOrgAuthToggle = async (value: boolean) => {
|
||||||
try {
|
try {
|
||||||
if (!currentOrg?.id) return;
|
if (!currentOrg?.id) return;
|
||||||
if (!subscription?.samlSSO) {
|
if (!subscription?.oidcSSO) {
|
||||||
handlePopUpOpen("upgradePlan");
|
handlePopUpOpen("upgradePlan");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -78,10 +74,7 @@ export const OrgOIDCSection = (): JSX.Element => {
|
|||||||
window.close();
|
window.close();
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
createNotification({
|
console.error(err);
|
||||||
text: (err as { response: { data: { message: string } } }).response.data.message,
|
|
||||||
type: "error"
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user