From feabdd7860b09c6fddf3e7eb6907c8bd016257f4 Mon Sep 17 00:00:00 2001 From: Shevijacobson Date: Mon, 16 Sep 2024 14:18:09 +0300 Subject: [PATCH 1/2] :sparkles: addition edit icon out of ActionColumns Signed-off-by: Shevijacobson --- .../app/pages/archetypes/archetypes-page.tsx | 34 +++++++++++++------ 1 file changed, 23 insertions(+), 11 deletions(-) diff --git a/client/src/app/pages/archetypes/archetypes-page.tsx b/client/src/app/pages/archetypes/archetypes-page.tsx index a6fe66f0d..3fd9a89b0 100644 --- a/client/src/app/pages/archetypes/archetypes-page.tsx +++ b/client/src/app/pages/archetypes/archetypes-page.tsx @@ -1,6 +1,7 @@ import React, { useState } from "react"; import { Trans, useTranslation } from "react-i18next"; import { useHistory } from "react-router-dom"; + import { Button, ButtonVariant, @@ -17,6 +18,7 @@ import { ToolbarContent, ToolbarGroup, ToolbarItem, + Tooltip, } from "@patternfly/react-core"; import { Table, @@ -27,8 +29,7 @@ import { Td, ActionsColumn, } from "@patternfly/react-table"; -import { CubesIcon } from "@patternfly/react-icons"; - +import { CubesIcon, PencilAltIcon } from "@patternfly/react-icons"; import { AppPlaceholder } from "@app/components/AppPlaceholder"; import { ConditionalRender } from "@app/components/ConditionalRender"; import { FilterToolbar, FilterType } from "@app/components/FilterToolbar"; @@ -473,6 +474,17 @@ const Archetypes: React.FC = () => { } /> + {archetypeWriteAccess && ( + + +