Skip to content

Commit

Permalink
Add support for upptime/uptime-monitor#221
Browse files Browse the repository at this point in the history
  • Loading branch information
Andre601 authored Aug 16, 2023
1 parent 9b4cd08 commit fcb2eca
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/components/Incident.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,15 @@
<dd>
{config.i18n.durationMin.replace(
/\$DURATION/g,
Math.floor(
(new Date(incident.metadata.end).getTime() -
new Date(incident.metadata.start).getTime()) /
60000
)
{#if incident.metdadata.end === "unknown"}
Not completed yet
{:else}
Math.floor(
(new Date(incident.metadata.end).getTime() -
new Date(incident.metadata.start).getTime()) /
60000
)
{/if}
)}
</dd>
{:else if incident.closed_at}
Expand Down

0 comments on commit fcb2eca

Please sign in to comment.