Always show runtime
This commit is contained in:
@@ -189,7 +189,7 @@ const JobCardDetails: React.FC<JobCardDetailsProps> = ({ job }) => {
|
||||
icon={<Calendar className="w-4 h-4" />}
|
||||
/>
|
||||
|
||||
{job.status === 'Running' && job.runtime && job.runtime > 0 && (
|
||||
{job.runtime && job.runtime > 0 && (
|
||||
<>
|
||||
<div className="flex items-center gap-2 text-sm text-gray-400">
|
||||
<Clock className="w-4 h-4" />
|
||||
@@ -199,13 +199,17 @@ const JobCardDetails: React.FC<JobCardDetailsProps> = ({ job }) => {
|
||||
{formatDuration(job.runtime)}
|
||||
</div>
|
||||
|
||||
<div className="flex items-center gap-2 text-sm text-gray-400">
|
||||
<Clock className="w-4 h-4" />
|
||||
<span>Remaining:</span>
|
||||
</div>
|
||||
<div className="text-sm text-green-400">
|
||||
{formatDuration(remainingTime)}
|
||||
</div>
|
||||
{job.status === 'Running' && (
|
||||
<>
|
||||
<div className="flex items-center gap-2 text-sm text-gray-400">
|
||||
<Clock className="w-4 h-4" />
|
||||
<span>Remaining:</span>
|
||||
</div>
|
||||
<div className="text-sm text-green-400">
|
||||
{formatDuration(remainingTime)}
|
||||
</div>
|
||||
</>
|
||||
)}
|
||||
</>
|
||||
)}
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user