mirror of
https://github.com/portainer/portainer.git
synced 2025-08-08 15:25:22 +02:00
feat(ui): renovate the FDO devices list EE-3669 (#7231)
This commit is contained in:
parent
87e9d7f8d4
commit
7e3347da2b
3 changed files with 27 additions and 17 deletions
|
@ -12,7 +12,6 @@ import { useTableSettings } from '@@/datatables/useTableSettings';
|
|||
import { useRowSelect } from '@@/datatables/useRowSelect';
|
||||
import {
|
||||
Table,
|
||||
TableActions,
|
||||
TableContainer,
|
||||
TableHeaderRow,
|
||||
TableRow,
|
||||
|
@ -78,14 +77,12 @@ export function FDOProfilesDatatable({
|
|||
|
||||
return (
|
||||
<TableContainer>
|
||||
<TableTitle icon="" label="Device Profiles" />
|
||||
|
||||
<TableActions>
|
||||
<TableTitle icon="list" featherIcon label="Device Profiles">
|
||||
<FDOProfilesDatatableActions
|
||||
isFDOEnabled={isFDOEnabled}
|
||||
selectedItems={selectedFlatRows.map((row) => row.original)}
|
||||
/>
|
||||
</TableActions>
|
||||
</TableTitle>
|
||||
|
||||
<Table
|
||||
className={tableProps.className}
|
||||
|
|
|
@ -27,8 +27,7 @@ export function FDOProfilesDatatableActions({
|
|||
return (
|
||||
<div className="actionBar">
|
||||
<Link to="portainer.endpoints.profile" className="space-left">
|
||||
<Button disabled={!isFDOEnabled}>
|
||||
<i className="fa fa-plus-circle space-right" aria-hidden="true" />
|
||||
<Button disabled={!isFDOEnabled} icon="plus-circle" featherIcon>
|
||||
Add Profile
|
||||
</Button>
|
||||
</Link>
|
||||
|
@ -36,8 +35,9 @@ export function FDOProfilesDatatableActions({
|
|||
<Button
|
||||
disabled={!isFDOEnabled || selectedItems.length !== 1}
|
||||
onClick={() => onDuplicateProfileClick()}
|
||||
icon="plus-circle"
|
||||
featherIcon
|
||||
>
|
||||
<i className="fa fa-plus-circle space-right" aria-hidden="true" />
|
||||
Duplicate
|
||||
</Button>
|
||||
|
||||
|
@ -45,8 +45,9 @@ export function FDOProfilesDatatableActions({
|
|||
disabled={!isFDOEnabled || selectedItems.length < 1}
|
||||
color="danger"
|
||||
onClick={() => onDeleteProfileClick()}
|
||||
icon="trash-2"
|
||||
featherIcon
|
||||
>
|
||||
<i className="fa fa-trash-alt space-right" aria-hidden="true" />
|
||||
Remove
|
||||
</Button>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue