mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 22:27:48 +00:00
fix: add empty display for sso general tab if no sso is enabled
This commit is contained in:
+1
@@ -144,6 +144,7 @@ export const SecretSyncOptionsFields = ({ hideInitialSync }: Props) => {
|
|||||||
<a
|
<a
|
||||||
href="https://infisical.com/docs/integrations/secret-syncs/overview#key-schemas"
|
href="https://infisical.com/docs/integrations/secret-syncs/overview#key-schemas"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
|
rel="noreferrer"
|
||||||
>
|
>
|
||||||
Key Schema
|
Key Schema
|
||||||
</a>{" "}
|
</a>{" "}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { twMerge } from "tailwind-merge";
|
import { twMerge } from "tailwind-merge";
|
||||||
|
|
||||||
import { UpgradePlanModal } from "@app/components/license/UpgradePlanModal";
|
import { UpgradePlanModal } from "@app/components/license/UpgradePlanModal";
|
||||||
import { Button, ContentLoader } from "@app/components/v2";
|
import { Button, ContentLoader, EmptyState } from "@app/components/v2";
|
||||||
import {
|
import {
|
||||||
OrgPermissionActions,
|
OrgPermissionActions,
|
||||||
OrgPermissionSubjects,
|
OrgPermissionSubjects,
|
||||||
@@ -60,9 +60,10 @@ export const OrgSsoTab = withPermission(
|
|||||||
const shouldShowCreateIdentityProviderView =
|
const shouldShowCreateIdentityProviderView =
|
||||||
!isOidcConfigured && !isSamlConfigured && !isLdapConfigured;
|
!isOidcConfigured && !isSamlConfigured && !isLdapConfigured;
|
||||||
|
|
||||||
const createIdentityProviderView = (shouldDisplaySection(LoginMethod.SAML) ||
|
const createIdentityProviderView =
|
||||||
|
shouldDisplaySection(LoginMethod.SAML) ||
|
||||||
shouldDisplaySection(LoginMethod.OIDC) ||
|
shouldDisplaySection(LoginMethod.OIDC) ||
|
||||||
shouldDisplaySection(LoginMethod.LDAP)) && (
|
shouldDisplaySection(LoginMethod.LDAP) ? (
|
||||||
<>
|
<>
|
||||||
<div className="mb-6 rounded-lg border border-mineshaft-600 bg-mineshaft-900 p-6">
|
<div className="mb-6 rounded-lg border border-mineshaft-600 bg-mineshaft-900 p-6">
|
||||||
<p className="text-xl font-semibold text-gray-200">Connect an Identity Provider</p>
|
<p className="text-xl font-semibold text-gray-200">Connect an Identity Provider</p>
|
||||||
@@ -155,6 +156,11 @@ export const OrgSsoTab = withPermission(
|
|||||||
handlePopUpToggle={handlePopUpToggle}
|
handlePopUpToggle={handlePopUpToggle}
|
||||||
/>
|
/>
|
||||||
</>
|
</>
|
||||||
|
) : (
|
||||||
|
<EmptyState title="" iconSize="2x" className="!pb-10 pt-14">
|
||||||
|
<p className="text-center text-lg">Single Sign-On (SSO) has been disabled</p>
|
||||||
|
<p className="text-center">Contact your server administrator</p>
|
||||||
|
</EmptyState>
|
||||||
);
|
);
|
||||||
|
|
||||||
if (areConfigsLoading) {
|
if (areConfigsLoading) {
|
||||||
|
|||||||
Reference in New Issue
Block a user