mirror of
https://github.com/optim-enterprises-bv/OptimCloud-gw-ui.git
synced 2025-10-29 17:32:20 +00:00
[WIFI-10894] Status column added to command history
Signed-off-by: Charles <charles.bourque96@gmail.com>
This commit is contained in:
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "ucentral-client",
|
||||
"version": "2.7.0(6)",
|
||||
"version": "2.7.0(7)",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "ucentral-client",
|
||||
"version": "2.7.0(6)",
|
||||
"version": "2.7.0(7)",
|
||||
"dependencies": {
|
||||
"@coreui/coreui": "^3.4.0",
|
||||
"@coreui/icons": "^2.0.1",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ucentral-client",
|
||||
"version": "2.7.0(6)",
|
||||
"version": "2.7.0(7)",
|
||||
"dependencies": {
|
||||
"@coreui/coreui": "^3.4.0",
|
||||
"@coreui/icons": "^2.0.1",
|
||||
|
||||
@@ -205,10 +205,11 @@ const DeviceCommands = () => {
|
||||
|
||||
const columns = [
|
||||
{ key: 'submitted', label: t('common.submitted'), filter: false, _style: { width: '20%' } },
|
||||
{ key: 'command', label: t('common.command'), _style: { width: '15%' } },
|
||||
{ key: 'command', label: t('common.command'), _style: { width: '0%' } },
|
||||
{ key: 'status', label: t('common.status'), _style: { width: '0%' } },
|
||||
{ key: 'executed', label: t('common.executed'), filter: false, _style: { width: '16%' } },
|
||||
{ key: 'completed', label: t('common.completed'), filter: false, _style: { width: '16%' } },
|
||||
{ key: 'errorCode', label: t('common.error_code'), filter: false, _style: { width: '8%' } },
|
||||
{ key: 'errorCode', label: t('common.error_code'), filter: false },
|
||||
{
|
||||
key: 'show_buttons',
|
||||
label: '',
|
||||
@@ -317,16 +318,17 @@ const DeviceCommands = () => {
|
||||
{item.completed && item.completed !== 0 ? (
|
||||
<FormattedDate date={item.completed} />
|
||||
) : (
|
||||
'Pending'
|
||||
'-'
|
||||
)}
|
||||
</td>
|
||||
),
|
||||
status: (item) => <td className="align-middle">{item.status}</td>,
|
||||
executed: (item) => (
|
||||
<td className="align-middle">
|
||||
{item.executed && item.executed !== 0 ? (
|
||||
<FormattedDate date={item.executed} />
|
||||
) : (
|
||||
'Pending'
|
||||
'-'
|
||||
)}
|
||||
</td>
|
||||
),
|
||||
@@ -335,7 +337,7 @@ const DeviceCommands = () => {
|
||||
{item.submitted && item.submitted !== '' ? (
|
||||
<FormattedDate date={item.submitted} />
|
||||
) : (
|
||||
'Pending'
|
||||
'-'
|
||||
)}
|
||||
</td>
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user