Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Frontend - Adjusted recent scans #2581

Merged
merged 1 commit into from
Nov 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 13 additions & 8 deletions frontend/src/components/scan/utils/RecentScans.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,19 @@ function RecentScansCard({
</small>
<small>
Finished:{" "}
<small>
<DateHoverable
className="text-accent"
ago
value={finished}
format="hh:mm:ss a MMM do, yyyy"
/>
</small>
{finished === null ? (
// in some cases (ex. pending and running status) the finished field is null, so we use a placeholder
<small className="text-gray">processing job</small>
) : (
<small>
<DateHoverable
className="text-accent"
ago
value={finished}
format="hh:mm:ss a MMM do, yyyy"
/>
</small>
)}
</small>
</div>
<div className="d-flex flex-column col-4">
Expand Down
Loading