mirror of
https://github.com/C9Glax/tranga-website.git
synced 2025-05-22 14:13:02 +02:00
MangaPopup (from List) add "Last Execution" tooltip
This commit is contained in:
parent
dbdb3c0168
commit
35e2e6ce16
@ -1,4 +1,4 @@
|
|||||||
import {Badge, Box, Button, Card, CardContent, CardCover, Stack, Typography} from "@mui/joy";
|
import {Badge, Box, Button, Card, CardContent, CardCover, Stack, Tooltip, Typography} from "@mui/joy";
|
||||||
import {Dispatch, SetStateAction, useCallback, useContext, useEffect, useState} from "react";
|
import {Dispatch, SetStateAction, useCallback, useContext, useEffect, useState} from "react";
|
||||||
import {ApiUriContext} from "../api/fetchApi.tsx";
|
import {ApiUriContext} from "../api/fetchApi.tsx";
|
||||||
import {DeleteJob, GetJobsWithType, StartJob} from "../api/Job.tsx";
|
import {DeleteJob, GetJobsWithType, StartJob} from "../api/Job.tsx";
|
||||||
@ -73,7 +73,9 @@ export default function MangaList({connected, setShowSearch}: {connected: boolea
|
|||||||
</Badge>
|
</Badge>
|
||||||
{jobList?.map((job) => (
|
{jobList?.map((job) => (
|
||||||
<MangaFromId key={job.mangaId} mangaId={job.mangaId}>
|
<MangaFromId key={job.mangaId} mangaId={job.mangaId}>
|
||||||
<Button color={"success"} endDecorator={<PlayArrow />} onClick={() => startJob(job.jobId)}>Start</Button>
|
<Tooltip title={"Last run: " + new Date(job.lastExecution).toLocaleString()}>
|
||||||
|
<Button color={"success"} endDecorator={<PlayArrow />} onClick={() => startJob(job.jobId)}>Start</Button>
|
||||||
|
</Tooltip>
|
||||||
<Button color={"danger"} endDecorator={<Remove />} onClick={() => deleteJob(job.jobId)}>Delete</Button>
|
<Button color={"danger"} endDecorator={<Remove />} onClick={() => deleteJob(job.jobId)}>Delete</Button>
|
||||||
</MangaFromId>
|
</MangaFromId>
|
||||||
))}
|
))}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user