mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-28 03:26:45 +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
|
TemplatePreviewUIFeature
|
||||||
} from '../../components/plugins/PluginUIFeatureTypes';
|
} from '../../components/plugins/PluginUIFeatureTypes';
|
||||||
import { identifierString } from '../../functions/conversion';
|
import { identifierString } from '../../functions/conversion';
|
||||||
import { notYetImplemented } from '../../functions/notifications';
|
|
||||||
import { useFilters } from '../../hooks/UseFilter';
|
import { useFilters } from '../../hooks/UseFilter';
|
||||||
import {
|
import {
|
||||||
useCreateApiFormModal,
|
useCreateApiFormModal,
|
||||||
@ -46,12 +45,7 @@ import { useUserState } from '../../states/UserState';
|
|||||||
import type { TableColumn } from '../Column';
|
import type { TableColumn } from '../Column';
|
||||||
import { BooleanColumn } from '../ColumnRenderers';
|
import { BooleanColumn } from '../ColumnRenderers';
|
||||||
import { InvenTreeTable } from '../InvenTreeTable';
|
import { InvenTreeTable } from '../InvenTreeTable';
|
||||||
import {
|
import { type RowAction, RowDeleteAction, RowEditAction } from '../RowActions';
|
||||||
type RowAction,
|
|
||||||
RowDeleteAction,
|
|
||||||
RowDuplicateAction,
|
|
||||||
RowEditAction
|
|
||||||
} from '../RowActions';
|
|
||||||
|
|
||||||
export type TemplateI = {
|
export type TemplateI = {
|
||||||
pk: number;
|
pk: number;
|
||||||
@ -274,11 +268,6 @@ export function TemplateTable({
|
|||||||
editTemplate.open();
|
editTemplate.open();
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
RowDuplicateAction({
|
|
||||||
hidden: true,
|
|
||||||
// TODO: Duplicate selected template
|
|
||||||
onClick: notYetImplemented
|
|
||||||
}),
|
|
||||||
RowDeleteAction({
|
RowDeleteAction({
|
||||||
hidden: !user.hasDeletePermission(templateProps.modelType),
|
hidden: !user.hasDeletePermission(templateProps.modelType),
|
||||||
onClick: () => {
|
onClick: () => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user