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:
@@ -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>
|
||||||
|
|||||||
@@ -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
|
||||||
|
})
|
||||||
];
|
];
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user