Skip to content

Commit

Permalink
add tooltip for last status change
Browse files Browse the repository at this point in the history
  • Loading branch information
seriousm4x committed Jan 30, 2023
1 parent 82cc400 commit bb00b61
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion frontend/src/components/DeviceCard.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,11 @@
<Fa icon={faLock} class="mx-1" />
</span>
{/if}
<p class="text-muted m-0">
<p
class="text-muted m-0"
data-toggle="tooltip"
title="Last status change: {device.updated}"
>
{formatDistance(parseISO(device.updated), now, {
includeSeconds: true,
addSuffix: true
Expand Down

0 comments on commit bb00b61

Please sign in to comment.