2
0
mirror of https://github.com/inventree/InvenTree.git synced 2026-02-06 05:15:52 +00:00

[UI] Add plugin website (#11255)

- To plugin table
- To plugin detail drawer
This commit is contained in:
Oliver
2026-02-05 18:26:25 +11:00
committed by GitHub
parent 8f27063e40
commit 2c59c165ba
2 changed files with 16 additions and 2 deletions

View File

@@ -93,6 +93,14 @@ export default function PluginDrawer({
name={t`Active`} name={t`Active`}
value={pluginInstance?.active} value={pluginInstance?.active}
/> />
{pluginInstance?.meta.website && (
<InfoItem
type='text'
name={t`Website`}
value={pluginInstance?.meta.website}
link={pluginInstance?.meta.website}
/>
)}
</Stack> </Stack>
</Stack> </Stack>
</Card> </Card>

View File

@@ -30,7 +30,7 @@ import {
import { useTable } from '../../hooks/UseTable'; import { useTable } from '../../hooks/UseTable';
import { useServerApiState } from '../../states/ServerApiState'; import { useServerApiState } from '../../states/ServerApiState';
import { useUserState } from '../../states/UserState'; import { useUserState } from '../../states/UserState';
import { BooleanColumn } from '../ColumnRenderers'; import { BooleanColumn, LinkColumn } from '../ColumnRenderers';
import { InvenTreeTable } from '../InvenTreeTable'; import { InvenTreeTable } from '../InvenTreeTable';
/** /**
@@ -134,7 +134,13 @@ export default function PluginListTable() {
accessor: 'meta.author', accessor: 'meta.author',
title: 'Author', title: 'Author',
sortable: false sortable: false
} },
LinkColumn({
accessor: 'meta.website',
title: t`Website`,
sortable: false,
switchable: true
})
]; ];
}, []); }, []);