Use proper attribute name in UI
Fixes: #25827 Signed-off-by: Hynek Mlnarik <hmlnarik@redhat.com>
This commit is contained in:
parent
b807ea5828
commit
0bf1fe3eb3
1 changed files with 13 additions and 5 deletions
|
@ -24,7 +24,7 @@ import {
|
||||||
} from "../components/time-selector/TimeSelector";
|
} from "../components/time-selector/TimeSelector";
|
||||||
import { useServerInfo } from "../context/server-info/ServerInfoProvider";
|
import { useServerInfo } from "../context/server-info/ServerInfoProvider";
|
||||||
import { useWhoAmI } from "../context/whoami/WhoAmI";
|
import { useWhoAmI } from "../context/whoami/WhoAmI";
|
||||||
import { convertToFormValues, sortProviders } from "../util";
|
import { beerify, convertToFormValues, sortProviders } from "../util";
|
||||||
import useIsFeatureEnabled, { Feature } from "../utils/useIsFeatureEnabled";
|
import useIsFeatureEnabled, { Feature } from "../utils/useIsFeatureEnabled";
|
||||||
|
|
||||||
import "./realm-settings-section.css";
|
import "./realm-settings-section.css";
|
||||||
|
@ -473,7 +473,9 @@ export const RealmSettingsTokensTab = ({
|
||||||
id="email-verification"
|
id="email-verification"
|
||||||
>
|
>
|
||||||
<Controller
|
<Controller
|
||||||
name="attributes.actionTokenGeneratedByUserLifespan-verify-email"
|
name={`attributes.${beerify(
|
||||||
|
"actionTokenGeneratedByUserLifespan.verify-email",
|
||||||
|
)}`}
|
||||||
defaultValue=""
|
defaultValue=""
|
||||||
control={form.control}
|
control={form.control}
|
||||||
render={({ field }) => (
|
render={({ field }) => (
|
||||||
|
@ -493,7 +495,9 @@ export const RealmSettingsTokensTab = ({
|
||||||
id="idp-acct-label"
|
id="idp-acct-label"
|
||||||
>
|
>
|
||||||
<Controller
|
<Controller
|
||||||
name="attributes.actionTokenGeneratedByUserLifespan-idp-verify-account-via-email"
|
name={`attributes.${beerify(
|
||||||
|
"actionTokenGeneratedByUserLifespan.idp-verify-account-via-email",
|
||||||
|
)}`}
|
||||||
defaultValue={""}
|
defaultValue={""}
|
||||||
control={form.control}
|
control={form.control}
|
||||||
render={({ field }) => (
|
render={({ field }) => (
|
||||||
|
@ -513,7 +517,9 @@ export const RealmSettingsTokensTab = ({
|
||||||
id="forgot-password-label"
|
id="forgot-password-label"
|
||||||
>
|
>
|
||||||
<Controller
|
<Controller
|
||||||
name="attributes.actionTokenGeneratedByUserLifespan-reset-credentials"
|
name={`attributes.${beerify(
|
||||||
|
"actionTokenGeneratedByUserLifespan.reset-credentials",
|
||||||
|
)}`}
|
||||||
defaultValue={""}
|
defaultValue={""}
|
||||||
control={form.control}
|
control={form.control}
|
||||||
render={({ field }) => (
|
render={({ field }) => (
|
||||||
|
@ -533,7 +539,9 @@ export const RealmSettingsTokensTab = ({
|
||||||
id="execute-actions"
|
id="execute-actions"
|
||||||
>
|
>
|
||||||
<Controller
|
<Controller
|
||||||
name="attributes.actionTokenGeneratedByUserLifespan-execute-actions"
|
name={`attributes.${beerify(
|
||||||
|
"actionTokenGeneratedByUserLifespan.execute-actions",
|
||||||
|
)}`}
|
||||||
defaultValue={""}
|
defaultValue={""}
|
||||||
control={form.control}
|
control={form.control}
|
||||||
render={({ field }) => (
|
render={({ field }) => (
|
||||||
|
|
Loading…
Reference in a new issue