forked from MapComplete/MapComplete
Status page: Add support for personal traffic light and rechecking
This commit is contained in:
parent
740702e20f
commit
695c328bc0
2 changed files with 116 additions and 47 deletions
|
|
@ -13,13 +13,15 @@
|
|||
</script>
|
||||
|
||||
{#if status === "online"}
|
||||
<CheckCircle class={twJoin(cls,"rounded-full")} style="color: #22cc22" />
|
||||
<CheckCircle class={twJoin(cls,"rounded-full shrink-0")} style="color: #22cc22" />
|
||||
{:else if status === "degraded"}
|
||||
<Exclamation class={twJoin(cls,"rounded-full")} style="color: #eecc22" />
|
||||
<Exclamation class={twJoin(cls,"rounded-full shrink-0")} style="color: #eecc22" />
|
||||
{:else if status === "offline"}
|
||||
<XCircleIcon class={twJoin(cls,"rounded-full")} style="color: #bb2222" />
|
||||
<XCircleIcon class={twJoin(cls,"rounded-full shrink-0")} style="color: #bb2222" />
|
||||
{:else if status === undefined}
|
||||
<Loading />
|
||||
<div class={twJoin(cls,"rounded-full shrink-0")}>
|
||||
<Loading />
|
||||
</div>
|
||||
{:else}
|
||||
? {status}
|
||||
{/if}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue