fix: wrong time during a failed deployment

This commit is contained in:
Esteban Ecallard 2024-05-23 15:15:18 +02:00 committed by GitHub
parent 5682ab9570
commit 8feece702c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -92,8 +92,13 @@ class="w-6 h-6" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<div>
@if ($deployment->status !== 'in_progress')
Finished <span x-text="measure_since_started()">0s</span> in
@if ($deployment->status !== 'failed')
<span class="font-bold" x-text="measure_finished_time()">0s</span>
@else
<span class="font-bold">0s</span>
@endif
@else
Running for
Running for <span class="font-bold" x-text="measure_finished_time()">0s</span>
@endif
<span class="font-bold" x-text="measure_finished_time()">0s</span>
</div>