don't show date if the job isn't done (#515)

This commit is contained in:
David Radcliffe 2024-09-07 21:33:32 -04:00 committed by GitHub
parent 4a82064521
commit 1b3a92306d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -41,7 +41,9 @@
'badge-danger': backgroundJob.job_status == 'STATUS_FAILED' 'badge-danger': backgroundJob.job_status == 'STATUS_FAILED'
}">{{backgroundJob.job_status}}</label></td> }">{{backgroundJob.job_status}}</label></td>
<td container="body" [ngbTooltip]="backgroundJob.locked_time | amDateFormat:'YYYY-MM-DD HH:mm'">{{backgroundJob.locked_time | amTimeAgo}}</td> <td container="body" [ngbTooltip]="backgroundJob.locked_time | amDateFormat:'YYYY-MM-DD HH:mm'">{{backgroundJob.locked_time | amTimeAgo}}</td>
<td container="body" [ngbTooltip]="backgroundJob.done_time | amDateFormat:'YYYY-MM-DD HH:mm'">{{backgroundJob.done_time | amTimeAgo}}</td> <td container="body">
<span *ngIf="backgroundJob.done_time" [ngbTooltip]="backgroundJob.done_time | amDateFormat:'YYYY-MM-DD HH:mm'">{{backgroundJob.done_time | amTimeAgo}}</span>
</td>
<td> <td>
<button (click)="openModal(content, backgroundJob)" class="btn btn-outline-indigo btn-with-icon btn-rounded"><i class="fa fa-info-circle"></i> Details</button> <button (click)="openModal(content, backgroundJob)" class="btn btn-outline-indigo btn-with-icon btn-rounded"><i class="fa fa-info-circle"></i> Details</button>
</td> </td>