Added tool tips on flow icons (#2573)
This commit is contained in:
parent
0c73fc0e84
commit
1447a77dc1
3 changed files with 82 additions and 66 deletions
|
@ -1,6 +1,11 @@
|
||||||
import React, { useState } from "react";
|
import React, { useState } from "react";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import { Dropdown, DropdownItem, DropdownToggle } from "@patternfly/react-core";
|
import {
|
||||||
|
Dropdown,
|
||||||
|
DropdownItem,
|
||||||
|
DropdownToggle,
|
||||||
|
Tooltip,
|
||||||
|
} from "@patternfly/react-core";
|
||||||
import { PlusIcon } from "@patternfly/react-icons";
|
import { PlusIcon } from "@patternfly/react-icons";
|
||||||
|
|
||||||
import type { AuthenticationProviderRepresentation } from "@keycloak/keycloak-admin-client/lib/defs/authenticatorConfigRepresentation";
|
import type { AuthenticationProviderRepresentation } from "@keycloak/keycloak-admin-client/lib/defs/authenticatorConfigRepresentation";
|
||||||
|
@ -40,6 +45,7 @@ export const EditFlowDropdown = ({
|
||||||
);
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
<Tooltip content={t("common:edit")}>
|
||||||
<>
|
<>
|
||||||
<Dropdown
|
<Dropdown
|
||||||
isPlain
|
isPlain
|
||||||
|
@ -60,7 +66,10 @@ export const EditFlowDropdown = ({
|
||||||
>
|
>
|
||||||
{t("addStep")}
|
{t("addStep")}
|
||||||
</DropdownItem>,
|
</DropdownItem>,
|
||||||
<DropdownItem key="addCondition" onClick={() => setType("condition")}>
|
<DropdownItem
|
||||||
|
key="addCondition"
|
||||||
|
onClick={() => setType("condition")}
|
||||||
|
>
|
||||||
{t("addCondition")}
|
{t("addCondition")}
|
||||||
</DropdownItem>,
|
</DropdownItem>,
|
||||||
<DropdownItem key="addSubFlow" onClick={() => setType("subFlow")}>
|
<DropdownItem key="addSubFlow" onClick={() => setType("subFlow")}>
|
||||||
|
@ -92,5 +101,6 @@ export const EditFlowDropdown = ({
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</>
|
</>
|
||||||
|
</Tooltip>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
|
@ -10,6 +10,7 @@ import {
|
||||||
FormGroup,
|
FormGroup,
|
||||||
Modal,
|
Modal,
|
||||||
ModalVariant,
|
ModalVariant,
|
||||||
|
Tooltip,
|
||||||
ValidatedOptions,
|
ValidatedOptions,
|
||||||
} from "@patternfly/react-core";
|
} from "@patternfly/react-core";
|
||||||
import { CogIcon, TrashIcon } from "@patternfly/react-icons";
|
import { CogIcon, TrashIcon } from "@patternfly/react-icons";
|
||||||
|
@ -125,6 +126,7 @@ export const ExecutionConfigModal = ({
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
<Tooltip content={t("common:settings")}>
|
||||||
<Button
|
<Button
|
||||||
variant="plain"
|
variant="plain"
|
||||||
aria-label={t("common:settings")}
|
aria-label={t("common:settings")}
|
||||||
|
@ -132,6 +134,7 @@ export const ExecutionConfigModal = ({
|
||||||
>
|
>
|
||||||
<CogIcon />
|
<CogIcon />
|
||||||
</Button>
|
</Button>
|
||||||
|
</Tooltip>
|
||||||
{configDescription && (
|
{configDescription && (
|
||||||
<Modal
|
<Modal
|
||||||
variant={ModalVariant.small}
|
variant={ModalVariant.small}
|
||||||
|
|
|
@ -11,6 +11,7 @@ import {
|
||||||
Text,
|
Text,
|
||||||
TextVariants,
|
TextVariants,
|
||||||
Button,
|
Button,
|
||||||
|
Tooltip,
|
||||||
} from "@patternfly/react-core";
|
} from "@patternfly/react-core";
|
||||||
import { TrashIcon } from "@patternfly/react-icons";
|
import { TrashIcon } from "@patternfly/react-icons";
|
||||||
|
|
||||||
|
@ -111,6 +112,7 @@ export const FlowRow = ({
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
{!builtIn && (
|
{!builtIn && (
|
||||||
|
<Tooltip content={t("common:delete")}>
|
||||||
<Button
|
<Button
|
||||||
variant="plain"
|
variant="plain"
|
||||||
aria-label={t("common:delete")}
|
aria-label={t("common:delete")}
|
||||||
|
@ -118,6 +120,7 @@ export const FlowRow = ({
|
||||||
>
|
>
|
||||||
<TrashIcon />
|
<TrashIcon />
|
||||||
</Button>
|
</Button>
|
||||||
|
</Tooltip>
|
||||||
)}
|
)}
|
||||||
</DataListCell>,
|
</DataListCell>,
|
||||||
]}
|
]}
|
||||||
|
|
Loading…
Reference in a new issue