Show expiration only when explicitly requested

Fixes: #20792

Signed-off-by: Hynek Mlnarik <hmlnarik@redhat.com>
This commit is contained in:
Hynek Mlnarik 2024-03-04 12:51:10 +01:00 committed by Hynek Mlnařík
parent a08ced940f
commit 7e41aa9880
2 changed files with 1 additions and 14 deletions

View file

@ -127,19 +127,6 @@ export const AdvancedSettings = ({
units={["minute", "day", "hour"]}
/>
<TokenLifespan
id="clientOfflineSessionMax"
name={convertAttributeNameToForm(
"attributes.client.offline.session.max.lifespan",
)}
defaultValue={
realm?.offlineSessionMaxLifespanEnabled
? realm.offlineSessionMaxLifespan
: undefined
}
units={["minute", "day", "hour"]}
/>
<FormGroup
label={t("oAuthMutual")}
fieldId="oAuthMutual"

View file

@ -74,7 +74,7 @@ export const TokenLifespan = ({
<SelectOption value={60}>{t(expires)}</SelectOption>
</Select>
</SplitItem>
<SplitItem>
<SplitItem hidden={!isExpireSet(field.value)}>
<TimeSelector
validated={
isExpireSet(field.value) && field.value! < 1