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:
parent
0f58b854fe
commit
0707ebf59b
@ -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: () => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user