CEC-624 Display update status info and ECU (#108)

This commit is contained in:
John Wu
2021-11-11 17:10:52 -08:00
committed by GitHub
parent 0f4047e966
commit 4318ce9048
2 changed files with 34 additions and 0 deletions

View File

@@ -8436,6 +8436,29 @@ exports[`App Route /vehicle-status/vin/carupdateid authenticated 1`] = `
</svg> </svg>
</span> </span>
</th> </th>
<th
class="MuiTableCell-root MuiTableCell-head MuiTableCell-alignCenter"
scope="col"
>
<span
aria-disabled="false"
class="MuiButtonBase-root MuiTableSortLabel-root"
role="button"
tabindex="0"
>
Info
<svg
aria-hidden="true"
class="MuiSvgIcon-root MuiTableSortLabel-icon MuiTableSortLabel-iconDirectionAsc"
focusable="false"
viewBox="0 0 24 24"
>
<path
d="M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"
/>
</svg>
</span>
</th>
<th <th
class="MuiTableCell-root MuiTableCell-head MuiTableCell-alignCenter" class="MuiTableCell-root MuiTableCell-head MuiTableCell-alignCenter"
scope="col" scope="col"
@@ -8480,6 +8503,9 @@ exports[`App Route /vehicle-status/vin/carupdateid authenticated 1`] = `
<td <td
class="MuiTableCell-root MuiTableCell-body MuiTableCell-alignCenter" class="MuiTableCell-root MuiTableCell-body MuiTableCell-alignCenter"
/> />
<td
class="MuiTableCell-root MuiTableCell-body MuiTableCell-alignCenter"
/>
</tr> </tr>
<tr <tr
class="MuiTableRow-root" class="MuiTableRow-root"
@@ -8497,6 +8523,9 @@ exports[`App Route /vehicle-status/vin/carupdateid authenticated 1`] = `
<td <td
class="MuiTableCell-root MuiTableCell-body MuiTableCell-alignCenter" class="MuiTableCell-root MuiTableCell-body MuiTableCell-alignCenter"
/> />
<td
class="MuiTableCell-root MuiTableCell-body MuiTableCell-alignCenter"
/>
</tr> </tr>
</tbody> </tbody>
<tfoot <tfoot

View File

@@ -24,6 +24,10 @@ const tableColumns = [
id: "status", id: "status",
label: "Status", label: "Status",
}, },
{
id: "info",
label: "Info",
},
{ {
id: "error_code", id: "error_code",
label: "Error", label: "Error",
@@ -106,6 +110,7 @@ const CarUpdateStatusTable = ({ carupdateid, token }) => {
{LocalDateTimeString(row.created)} {LocalDateTimeString(row.created)}
</TableCell> </TableCell>
<TableCell align="center">{row.status}</TableCell> <TableCell align="center">{row.status}</TableCell>
<TableCell align="center">{row.info}</TableCell>
<TableCell align="center">{row.error}</TableCell> <TableCell align="center">{row.error}</TableCell>
</TableRow> </TableRow>
))} ))}