From 8e5ce6aa34eec27878321ce6d1a73ac6636c2894 Mon Sep 17 00:00:00 2001
From: mfrances17 <39063664+mfrances17@users.noreply.github.com>
Date: Mon, 1 Nov 2021 14:44:23 -0400
Subject: [PATCH] disable vendor if provider exists (#1447)
---
src/user-federation/UserFederationLdapSettings.tsx | 2 +-
src/user-federation/ldap/LdapSettingsGeneral.tsx | 3 +++
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/user-federation/UserFederationLdapSettings.tsx b/src/user-federation/UserFederationLdapSettings.tsx
index 606aeb4d19..d894b71bbe 100644
--- a/src/user-federation/UserFederationLdapSettings.tsx
+++ b/src/user-federation/UserFederationLdapSettings.tsx
@@ -299,7 +299,7 @@ export default function UserFederationLdapSettings() {
t("advancedSettings"),
]}
>
-
+
diff --git a/src/user-federation/ldap/LdapSettingsGeneral.tsx b/src/user-federation/ldap/LdapSettingsGeneral.tsx
index d98fd39c9b..bc474fe9cc 100644
--- a/src/user-federation/ldap/LdapSettingsGeneral.tsx
+++ b/src/user-federation/ldap/LdapSettingsGeneral.tsx
@@ -19,12 +19,14 @@ export type LdapSettingsGeneralProps = {
form: UseFormMethods;
showSectionHeading?: boolean;
showSectionDescription?: boolean;
+ vendorEdit?: boolean;
};
export const LdapSettingsGeneral = ({
form,
showSectionHeading = false,
showSectionDescription = false,
+ vendorEdit = false,
}: LdapSettingsGeneralProps) => {
const { t } = useTranslation("user-federation");
const helpText = useTranslation("user-federation-help").t;
@@ -174,6 +176,7 @@ export const LdapSettingsGeneral = ({
control={form.control}
render={({ onChange, value }) => (