added help item on enable switch
This commit is contained in:
parent
4e45bc2a35
commit
fb8419f3e1
3 changed files with 12 additions and 0 deletions
|
@ -81,6 +81,7 @@ const ClientDetailHeader = ({
|
||||||
subKey="clients:clientsExplain"
|
subKey="clients:clientsExplain"
|
||||||
badge={client.protocol}
|
badge={client.protocol}
|
||||||
divider={false}
|
divider={false}
|
||||||
|
helpTextKey="clients-help:enableDisable"
|
||||||
dropdownItems={[
|
dropdownItems={[
|
||||||
<DropdownItem key="download" onClick={() => toggleDownloadDialog()}>
|
<DropdownItem key="download" onClick={() => toggleDownloadDialog()}>
|
||||||
{t("downloadAdapterConfig")}
|
{t("downloadAdapterConfig")}
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
{
|
{
|
||||||
"clients-help": {
|
"clients-help": {
|
||||||
|
"enableDisable": "Disabled clients cannot initiate a login or have obtained access tokens.",
|
||||||
"clientType": "'OpenID connect' allows Clients to verify the identity of the End-User based on the authentication performed by an Authorization Server.'SAML' enables web-based authentication and authorization scenarios including cross-domain single sign-on (SSO) and uses security tokens containing assertions to pass information.",
|
"clientType": "'OpenID connect' allows Clients to verify the identity of the End-User based on the authentication performed by an Authorization Server.'SAML' enables web-based authentication and authorization scenarios including cross-domain single sign-on (SSO) and uses security tokens containing assertions to pass information.",
|
||||||
"serviceAccount": "Allows you to authenticate this client to Keycloak and retrieve access token dedicated to this client. In terms of OAuth2 specification, this enables support of 'Client Credentials Grant' for this client.",
|
"serviceAccount": "Allows you to authenticate this client to Keycloak and retrieve access token dedicated to this client. In terms of OAuth2 specification, this enables support of 'Client Credentials Grant' for this client.",
|
||||||
"authentication": "This defines the type of the OIDC client. When it's ON, the OIDC type is set to confidential access type. When it's OFF, it is set to public access type",
|
"authentication": "This defines the type of the OIDC client. When it's ON, the OIDC type is set to confidential access type. When it's OFF, it is set to public access type",
|
||||||
|
|
|
@ -21,6 +21,7 @@ import {
|
||||||
FormattedLink,
|
FormattedLink,
|
||||||
FormattedLinkProps,
|
FormattedLinkProps,
|
||||||
} from "../external-link/FormattedLink";
|
} from "../external-link/FormattedLink";
|
||||||
|
import { HelpItem } from "../help-enabler/HelpItem";
|
||||||
|
|
||||||
export type ViewHeaderProps = {
|
export type ViewHeaderProps = {
|
||||||
titleKey: string;
|
titleKey: string;
|
||||||
|
@ -36,6 +37,7 @@ export type ViewHeaderProps = {
|
||||||
isEnabled?: boolean;
|
isEnabled?: boolean;
|
||||||
onToggle?: (value: boolean) => void;
|
onToggle?: (value: boolean) => void;
|
||||||
divider?: boolean;
|
divider?: boolean;
|
||||||
|
helpTextKey?: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const ViewHeader = ({
|
export const ViewHeader = ({
|
||||||
|
@ -51,6 +53,7 @@ export const ViewHeader = ({
|
||||||
isEnabled = true,
|
isEnabled = true,
|
||||||
onToggle,
|
onToggle,
|
||||||
divider = true,
|
divider = true,
|
||||||
|
helpTextKey,
|
||||||
}: ViewHeaderProps) => {
|
}: ViewHeaderProps) => {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
const { enabled } = useContext(HelpContext);
|
const { enabled } = useContext(HelpContext);
|
||||||
|
@ -106,6 +109,13 @@ export const ViewHeader = ({
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
{helpTextKey && (
|
||||||
|
<HelpItem
|
||||||
|
helpText={t(helpTextKey)}
|
||||||
|
forLabel={t("common:enabled")}
|
||||||
|
forID={`${titleKey}-switch`}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
</ToolbarItem>
|
</ToolbarItem>
|
||||||
)}
|
)}
|
||||||
{dropdownItems && (
|
{dropdownItems && (
|
||||||
|
|
Loading…
Reference in a new issue