Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add UTC hover to relative times in timeline #4056

Merged
merged 2 commits into from
Nov 30, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading