Skip to content

Commit

Permalink
Add UTC hover to relative times in timeline
Browse files Browse the repository at this point in the history
  • Loading branch information
wssheldon committed Nov 30, 2023
1 parent 568f49b commit fd396fc
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/dispatch/static/dispatch/src/case/TimelineTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import Util from "@/util"
import DMenu from "@/components/DMenu.vue"
import { useRoute } from "vue-router"
import CaseApi from "@/case/api"
import { formatRelativeDate } from "@/filters"
import { formatRelativeDate, formatToUTC } from "@/filters"
import DTooltip from "@/components/DTooltip.vue"
const route = useRoute()
Expand Down Expand Up @@ -109,7 +110,13 @@ const descriptionMap = {
{{ sourceIconMap[event.source]?.sourceName || event.source }}
</b>
{{ descriptionMap[event.description] || event.description }} ·
{{ formatRelativeDate(event.started_at) }}
<DTooltip :text="formatToUTC(event.started_at)" hotkeys="">
<template #activator="{ tooltip }">
<span class="dispatch-text-paragraph" v-bind="tooltip">
{{ formatRelativeDate(event.started_at) }}
</span>
</template>
</DTooltip>
</span>
</div>
</v-col>
Expand Down

0 comments on commit fd396fc

Please sign in to comment.