2
0
mirror of https://github.com/hibiken/asynqmon.git synced 2025-10-26 16:26:12 +08:00

Show deadline data in ActiveTasksTable

This commit is contained in:
Ken Hibino
2021-01-27 16:16:38 -08:00
parent 3c43624927
commit ae7e0730bc
4 changed files with 18 additions and 7 deletions

View File

@@ -37,7 +37,7 @@ import TablePaginationActions, {
import TableActions from "./TableActions";
import { usePolling } from "../hooks";
import { ActiveTaskExtended } from "../reducers/tasksReducer";
import { timeAgo, uuidPrefix } from "../utils";
import { durationBefore, timeAgo, uuidPrefix } from "../utils";
import { TableColumn } from "../types/table";
const useStyles = makeStyles((theme) => ({
@@ -412,7 +412,9 @@ function Row(props: RowProps) {
className={classes.noBottomBorder}
align="right"
>
TODO: In 30s
{task.deadline === "-"
? "-"
: durationBefore(task.deadline)}
</TableCell>
</TableRow>
</TableBody>