[UI] Adjust stock column for virtual parts (#11873)

- Display "virtual part" instead

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
Oliver 2026-05-05 14:47:08 +10:00 committed by GitHub
parent 18e3c5a0e9
commit 5c4c583e8e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 0 deletions

View File

@ -81,6 +81,14 @@ function partTableColumns(): TableColumn[] {
sortable: true,
render: (record) => {
if (record.virtual) {
return (
<Text size='sm' c='dimmed' fs='italic'>
{t`Virtual part`}
</Text>
);
}
const extra: ReactNode[] = [];
const stock = record?.total_in_stock ?? 0;