Merge branch 'release/0.0.3'

This commit is contained in:
jwu-fisker
2023-02-09 09:46:52 -08:00
29 changed files with 1031 additions and 495 deletions

View File

@@ -14,6 +14,7 @@ import { Link } from "react-router-dom";
import { logger } from "../../../services/monitoring";
import { LocalDateTimeString } from "../../../utils/dates";
import { Permissions } from "../../../utils/roles";
import {
CarUpdatesProvider,
useCarUpdatesContext
@@ -34,6 +35,10 @@ const tableColumns = [
id: "update_package_id",
label: "Name",
},
{
id: "username",
label: "Username",
},
{
id: "status",
label: "Status",
@@ -167,6 +172,9 @@ const MainForm = ({ vin, token }) => {
{updateName(row)}
</Link>
</TableCell>
<TableCell align="center">
{row.username}
</TableCell>
<TableCell align="center">
{row.status}
{row.progress > -1 && (
@@ -197,22 +205,22 @@ const MainForm = ({ vin, token }) => {
</TableBody>
<TableFooter>
<TableRow>
{totalCarUpdates === 0 ? (
<td>No Car Updates found</td>
{totalCarUpdates === 0 ? (
<td>No Car Updates found</td>
) : (
<TablePagination
rowsPerPageOptions={[5, 10, 25, 100]}
colSpan={6}
count={totalCarUpdates}
rowsPerPage={pageSize}
page={pageIndex}
SelectProps={{
inputProps: { "aria-label": "rows per page" },
native: true,
}}
onPageChange={handleChangePageIndex}
onRowsPerPageChange={handleChangePageSize}
/>)}
<TablePagination
rowsPerPageOptions={[5, 10, 25, 100]}
colSpan={6}
count={totalCarUpdates}
rowsPerPage={pageSize}
page={pageIndex}
SelectProps={{
inputProps: { "aria-label": "rows per page" },
native: true,
}}
onPageChange={handleChangePageIndex}
onRowsPerPageChange={handleChangePageSize}
/>)}
</TableRow>
</TableFooter>
</Table>