feat: add timer to deployments

This commit is contained in:
tglide
2023-02-09 15:33:37 +00:00
parent ebeaf300fb
commit e79b68d06a
@@ -39,6 +39,7 @@
import { page } from '$app/stores';
import Output from '$lib/components/output.svelte';
import { calculateTime } from '$lib/helpers/timeConversion';
import { timer } from '$lib/actions/timer';
export let data: PageData;
@@ -190,6 +191,8 @@
<TableCellText title="Build Time">
{#if deployment.status === 'ready'}
{calculateTime(deployment.buildTime)}
{:else}
<span use:timer={{ start: deployment.$createdAt }} />
{/if}
</TableCellText>