Skip to content

Commit

Permalink
🐛 Adding tooltip to PencilAltIcon (konveyor#1688)
Browse files Browse the repository at this point in the history
Resolves: https://issues.redhat.com/browse/MTA-1468

---------

Signed-off-by: Maayan Hadasi <[email protected]>
  • Loading branch information
mguetta1 authored Feb 19, 2024
1 parent ea6e859 commit 9b8a0ff
Showing 1 changed file with 12 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import {
MenuToggle,
MenuToggleElement,
Modal,
Tooltip,
} from "@patternfly/react-core";
import { PencilAltIcon, TagIcon, EllipsisVIcon } from "@patternfly/react-icons";
import {
Expand Down Expand Up @@ -359,9 +360,8 @@ export const ApplicationsTable: React.FC = () => {
selectOptions: [
...new Set(
applications
.flatMap(
(application) =>
application?.archetypes?.map((archetype) => archetype.name)
.flatMap((application) =>
application?.archetypes?.map((archetype) => archetype.name)
)
.filter(Boolean)
),
Expand Down Expand Up @@ -948,13 +948,15 @@ export const ApplicationsTable: React.FC = () => {

<Td isActionCell id="pencil-action">
{applicationWriteAccess && (
<Button
variant="plain"
icon={<PencilAltIcon />}
onClick={() =>
setSaveApplicationModalState(application)
}
/>
<Tooltip content={t("actions.edit")}>
<Button
variant="plain"
icon={<PencilAltIcon />}
onClick={() =>
setSaveApplicationModalState(application)
}
/>
</Tooltip>
)}
</Td>
<Td isActionCell id="row-actions">
Expand Down

0 comments on commit 9b8a0ff

Please sign in to comment.