Hide clustering section when not publicClient (#2186)
This commit is contained in:
parent
dd35ccb9bf
commit
2cb4fcc29d
1 changed files with 123 additions and 117 deletions
|
@ -50,6 +50,7 @@ export const AdvancedTab = ({
|
|||
save,
|
||||
client: {
|
||||
id,
|
||||
publicClient,
|
||||
registeredNodes,
|
||||
attributes,
|
||||
protocol,
|
||||
|
@ -175,6 +176,9 @@ export const AdvancedTab = ({
|
|||
if (protocol === openIdConnect) {
|
||||
sections.splice(3, 0, t("openIdConnectCompatibilityModes"));
|
||||
}
|
||||
if (!publicClient) {
|
||||
sections.splice(1, 1);
|
||||
}
|
||||
|
||||
return (
|
||||
<PageSection variant="light" className="pf-u-py-0">
|
||||
|
@ -247,6 +251,7 @@ export const AdvancedTab = ({
|
|||
</ActionGroup>
|
||||
</FormAccess>
|
||||
</>
|
||||
{publicClient && (
|
||||
<>
|
||||
<FormAccess role="manage-clients" isHorizontal>
|
||||
<FormGroup
|
||||
|
@ -369,6 +374,7 @@ export const AdvancedTab = ({
|
|||
</ExpandableSection>
|
||||
</>
|
||||
</>
|
||||
)}
|
||||
<>
|
||||
{protocol === openIdConnect && (
|
||||
<>
|
||||
|
|
Loading…
Reference in a new issue