Skip to content

Commit

Permalink
Merge pull request coollabsio#3283 from TimKochDev/fix-deployments-typo
Browse files Browse the repository at this point in the history
fix: Deployment running for - without "ago"
  • Loading branch information
andrasbacsai authored Sep 5, 2024
2 parents 6528bc5 + f072823 commit bd3220a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ class="w-6 h-6" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<div class="flex flex-col" x-data="elapsedTime('{{ $deployment->deployment_uuid }}', '{{ $deployment->status }}', '{{ $deployment->created_at }}', '{{ $deployment->updated_at }}')">
<div>
@if ($deployment->status !== 'in_progress')
Finished <span x-text="measure_since_started()">0s</span> in
Finished <span x-text="measure_since_started()">0s</span> ago in
<span class="font-bold" x-text="measure_finished_time()">0s</span>
@else
Running for <span class="font-bold" x-text="measure_since_started()">0s</span>
Expand Down Expand Up @@ -158,7 +158,7 @@ function goto(url) {
}
},
measure_since_started() {
return dayjs.utc(created_at).fromNow();
return dayjs.utc(created_at).fromNow(true); // "true" prevents the "ago" suffix
},
}))
</script>
Expand Down

0 comments on commit bd3220a

Please sign in to comment.