2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-27 19:16:44 +00:00

Remove unimplemented action (#9520)

- Duplication will have to wait until we move away from file-based templates
This commit is contained in:
Oliver 2025-04-16 10:59:51 +10:00 committed by GitHub
parent 0f58b854fe
commit 0707ebf59b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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: () => {