2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-11-30 09:20:03 +00:00

[UI] Remove duplicate action (#10844)

- "Build Output" is same as "stock item" in this case
This commit is contained in:
Oliver
2025-11-17 19:52:35 +11:00
committed by GitHub
parent 770f7a292e
commit 57a2de6ffc

View File

@@ -23,11 +23,7 @@ import { useNavigate } from 'react-router-dom';
import { ActionButton } from '@lib/components/ActionButton'; import { ActionButton } from '@lib/components/ActionButton';
import { AddItemButton } from '@lib/components/AddItemButton'; import { AddItemButton } from '@lib/components/AddItemButton';
import { ProgressBar } from '@lib/components/ProgressBar'; import { ProgressBar } from '@lib/components/ProgressBar';
import { import { type RowAction, RowEditAction } from '@lib/components/RowActions';
type RowAction,
RowEditAction,
RowViewAction
} from '@lib/components/RowActions';
import { ApiEndpoints } from '@lib/enums/ApiEndpoints'; import { ApiEndpoints } from '@lib/enums/ApiEndpoints';
import { ModelType } from '@lib/enums/ModelType'; import { ModelType } from '@lib/enums/ModelType';
import { UserRoles } from '@lib/enums/Roles'; import { UserRoles } from '@lib/enums/Roles';
@@ -569,13 +565,7 @@ export default function BuildOutputTable({
setSelectedOutputs([record]); setSelectedOutputs([record]);
cancelBuildOutputsForm.open(); cancelBuildOutputsForm.open();
} }
}, }
RowViewAction({
title: t`View Build Output`,
modelId: record.pk,
modelType: ModelType.stockitem,
navigate: navigate
})
]; ];
}, },
[buildStatus, user, partId, hasTrackedItems] [buildStatus, user, partId, hasTrackedItems]