Serial number as link to device

This commit is contained in:
bourquecharles
2021-05-18 10:37:28 -04:00
parent f9a1747f7b
commit 2f168dca4c

View File

@@ -234,6 +234,17 @@ const DeviceListDisplay = ({ devices, loading, updateDevicesPerPage, pageCount,
hover
loading={loading}
scopedSlots={{
serialNumber: (item) => (
<td style={{ textAlign: 'center' }}>
<CLink
className="c-subheader-nav-link"
aria-current="page"
to={() => `/devices/${item.serialNumber}`}
>
{item.serialNumber}
</CLink>
</td>
),
deviceType: (item) => (
<td style={{ textAlign: 'center' }}>
<CPopover