Hide clustering section when not publicClient (#2186)

This commit is contained in:
Erik Jan de Wit 2022-03-07 15:28:26 +01:00 committed by GitHub
parent dd35ccb9bf
commit 2cb4fcc29d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 && (
<>