Skip to content

Commit

Permalink
DateString: Remove tooltip with full timestamp (#683)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefandesu committed Apr 13, 2022
1 parent 7828454 commit 3a5bcb9
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/components/DateString.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<template>
<span
v-b-tooltip.hover="{ title: tooltip, delay: defaults.delay.medium }">
<span>
{{ dateShort }}
</span>
</template>
Expand All @@ -17,10 +16,8 @@ export default defineComponent({
},
setup(props) {
const dateShort = computed(() => props.date.slice(0, 10))
const tooltip = computed(() => props.date.length > 10 ? props.date.replace("T", " ").replace("Z", " (UTC)") : null)
return {
dateShort,
tooltip,
}
},
})
Expand Down

0 comments on commit 3a5bcb9

Please sign in to comment.