status/gui/dashboard/tiles.svelte
Romein van Buren f57f9137c7
More dashboard fixes
Signed-off-by: Romein van Buren <romein@vburen.nl>
2022-07-11 13:15:39 +02:00

17 lines
350 B
Svelte

<script>
import TileRawValue from './tile-rawvalue.svelte';
export let services;
export let color;
export let value;
</script>
{#each Object.entries(services) as [ id, service ] (id)}
<TileRawValue
title={service.name.en}
date={service.lastBeat.date ? new Date(service.lastBeat.date) : false}
{value}
{color}
/>
{/each}