From 0707ebf59be43bede7421186be414b0b363113af Mon Sep 17 00:00:00 2001 From: Oliver Date: Wed, 16 Apr 2025 10:59:51 +1000 Subject: [PATCH] Remove unimplemented action (#9520) - Duplication will have to wait until we move away from file-based templates --- src/frontend/src/tables/settings/TemplateTable.tsx | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/frontend/src/tables/settings/TemplateTable.tsx b/src/frontend/src/tables/settings/TemplateTable.tsx index 319ba75808..0d2394177f 100644 --- a/src/frontend/src/tables/settings/TemplateTable.tsx +++ b/src/frontend/src/tables/settings/TemplateTable.tsx @@ -32,7 +32,6 @@ import type { TemplatePreviewUIFeature } from '../../components/plugins/PluginUIFeatureTypes'; import { identifierString } from '../../functions/conversion'; -import { notYetImplemented } from '../../functions/notifications'; import { useFilters } from '../../hooks/UseFilter'; import { useCreateApiFormModal, @@ -46,12 +45,7 @@ import { useUserState } from '../../states/UserState'; import type { TableColumn } from '../Column'; import { BooleanColumn } from '../ColumnRenderers'; import { InvenTreeTable } from '../InvenTreeTable'; -import { - type RowAction, - RowDeleteAction, - RowDuplicateAction, - RowEditAction -} from '../RowActions'; +import { type RowAction, RowDeleteAction, RowEditAction } from '../RowActions'; export type TemplateI = { pk: number; @@ -274,11 +268,6 @@ export function TemplateTable({ editTemplate.open(); } }), - RowDuplicateAction({ - hidden: true, - // TODO: Duplicate selected template - onClick: notYetImplemented - }), RowDeleteAction({ hidden: !user.hasDeletePermission(templateProps.modelType), onClick: () => {