Skip to content

Commit

Permalink
Change the edit and delete buttons style on tags table
Browse files Browse the repository at this point in the history
Signed-off-by: HadasahR <[email protected]>
  • Loading branch information
HadasahR committed Sep 29, 2024
1 parent c04bb35 commit cb7c653
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client/src/app/pages/controls/tags/tags.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ import { COLOR_NAMES_BY_HEX_VALUE } from "@app/Constants";
import { TagForm } from "./components/tag-form";
import { TagCategoryForm } from "./components/tag-category-form";
import { getTagCategoryFallbackColor } from "@app/components/labels/item-tag-label/item-tag-label";
import { AppTableActionButtons } from "@app/components/AppTableActionButtons";
import { Color } from "@app/components/Color";
import { ConditionalRender } from "@app/components/ConditionalRender";
import { AppPlaceholder } from "@app/components/AppPlaceholder";
Expand All @@ -57,6 +56,7 @@ import {
import { useLocalTableControls } from "@app/hooks/table-controls";
import { RBAC, controlsWriteScopes, RBAC_TYPE } from "@app/rbac";
import { TagTable } from "./components/tag-table";
import { ControlTableActionButtons } from "../ControlTableActionButtons";

export const Tags: React.FC = () => {
const { t } = useTranslation();
Expand Down Expand Up @@ -385,9 +385,9 @@ export const Tags: React.FC = () => {
>
{tagCategory.tags?.length || 0}
</Td>
<AppTableActionButtons
<ControlTableActionButtons
isDeleteEnabled={!!tagCategory.tags?.length}
tooltipMessage={t(
deleteTooltipMessage={t(
"message.cannotDeleteNonEmptyTagCategory"
)}
onEdit={() => setTagCategoryModalState(tagCategory)}
Expand Down

0 comments on commit cb7c653

Please sign in to comment.