feat: update device management to include device description and change status display
This commit is contained in:
@@ -48,13 +48,13 @@ const columns = (showPreviewModal, showEditModal, showDeleteDialog) => [
|
||||
},
|
||||
{
|
||||
title: 'Status',
|
||||
dataIndex: 'device_status',
|
||||
key: 'device_status',
|
||||
dataIndex: 'is_active',
|
||||
key: 'is_active',
|
||||
width: '10%',
|
||||
align: 'center',
|
||||
render: (_, { device_status }) => (
|
||||
render: (_, { is_active }) => (
|
||||
<>
|
||||
{device_status === true ? (
|
||||
{is_active === true ? (
|
||||
<Tag color={'green'} key={'status'}>
|
||||
Running
|
||||
</Tag>
|
||||
|
||||
Reference in New Issue
Block a user