diff --git a/src/route-config.ts b/src/route-config.ts
index 3c439c50c8..cea799f7c4 100644
--- a/src/route-config.ts
+++ b/src/route-config.ts
@@ -243,7 +243,7 @@ export const routes: RoutesFn = (t: TFunction) => [
{
path: "/:realm/user-federation/ldap/new",
component: UserFederationLdapSettings,
- breadcrumb: t("common:settings"),
+ breadcrumb: t("user-federation:addOneLdap"),
access: "view-realm",
},
{
diff --git a/src/user-federation/UserFederationLdapSettings.tsx b/src/user-federation/UserFederationLdapSettings.tsx
index 13cffe17c5..94a68f1e1b 100644
--- a/src/user-federation/UserFederationLdapSettings.tsx
+++ b/src/user-federation/UserFederationLdapSettings.tsx
@@ -131,7 +131,7 @@ const LdapSettingsHeader = ({
<>
{!id ? (
-
+
) : (
{
},
});
+ const addLdapFormContent = () => {
+ return (
+ <>
+
+
+
+
+
+
+
+
+
+
+ >
+ );
+ };
+
return (
<>
@@ -305,52 +350,15 @@ export const UserFederationLdapSettings = () => {
)}
/>
-
- {t("common:settings")}}
- >
-
+ {t("common:settings")}}
>
-
-
-
-
-
-
-
-
-
-
- {id && (
+ {addLdapFormContent()}
+
{
>
- )}
-
+
+ ) : (
+ addLdapFormContent()
+ )}
>
);
diff --git a/src/user-federation/messages.json b/src/user-federation/messages.json
index 1c44193987..d205b4dd88 100644
--- a/src/user-federation/messages.json
+++ b/src/user-federation/messages.json
@@ -7,6 +7,7 @@
"providers": "Add providers",
"addKerberos": "Add Kerberos providers",
"addLdap": "Add LDAP providers",
+ "addOneLdap": "Add LDAP provider",
"addKerberosWizardTitle": "Add Kerberos user federation provider",
"addLdapWizardTitle": "Add LDAP user federation provider",