mirror of
https://github.com/inventree/InvenTree.git
synced 2026-02-05 21:05:51 +00:00
[UI] Add plugin website (#11255)
- To plugin table - To plugin detail drawer
This commit is contained in:
@@ -93,6 +93,14 @@ export default function PluginDrawer({
|
||||
name={t`Active`}
|
||||
value={pluginInstance?.active}
|
||||
/>
|
||||
{pluginInstance?.meta.website && (
|
||||
<InfoItem
|
||||
type='text'
|
||||
name={t`Website`}
|
||||
value={pluginInstance?.meta.website}
|
||||
link={pluginInstance?.meta.website}
|
||||
/>
|
||||
)}
|
||||
</Stack>
|
||||
</Stack>
|
||||
</Card>
|
||||
|
||||
@@ -30,7 +30,7 @@ import {
|
||||
import { useTable } from '../../hooks/UseTable';
|
||||
import { useServerApiState } from '../../states/ServerApiState';
|
||||
import { useUserState } from '../../states/UserState';
|
||||
import { BooleanColumn } from '../ColumnRenderers';
|
||||
import { BooleanColumn, LinkColumn } from '../ColumnRenderers';
|
||||
import { InvenTreeTable } from '../InvenTreeTable';
|
||||
|
||||
/**
|
||||
@@ -134,7 +134,13 @@ export default function PluginListTable() {
|
||||
accessor: 'meta.author',
|
||||
title: 'Author',
|
||||
sortable: false
|
||||
}
|
||||
},
|
||||
LinkColumn({
|
||||
accessor: 'meta.website',
|
||||
title: t`Website`,
|
||||
sortable: false,
|
||||
switchable: true
|
||||
})
|
||||
];
|
||||
}, []);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user