Change order of client sections (#2245)

This commit is contained in:
mfrances17 2022-03-15 05:43:48 -04:00 committed by GitHub
parent 9e37252db2
commit 49c77c20cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -56,17 +56,17 @@ export const ClientSettings = ({
); );
const sections = useMemo(() => { const sections = useMemo(() => {
let result = ["generalSettings"]; let result = ["generalSettings", "accessSettings"];
if (protocol === "saml") { if (protocol === "saml") {
result = [...result, "samlCapabilityConfig", "signatureAndEncryption"]; result = [...result, "samlCapabilityConfig", "signatureAndEncryption"];
} else if (!client.bearerOnly) { } else if (!client.bearerOnly) {
result = [...result, "capabilityConfig"]; result = [...result, "capabilityConfig"];
} else { } else {
return [...result, "accessSettings"]; return result;
} }
return [...result, "accessSettings", "loginSettings", "logoutSettings"]; return [...result, "loginSettings", "logoutSettings"];
}, [protocol, client]); }, [protocol, client]);
return ( return (