Skip to content

Commit

Permalink
fix: added tooltip on creation/modified date
Browse files Browse the repository at this point in the history
  • Loading branch information
shariquerik committed Aug 2, 2023
1 parent 4580d3c commit f306ad7
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions frontend/src/pages/Lead.vue
Original file line number Diff line number Diff line change
Expand Up @@ -192,16 +192,18 @@
</Toggler>
</div>
</div>
<div class="text-sm px-6 p-3 leading-5 cursor-pointer">
<div
class="flex items-center gap-1 text-sm px-6 p-3 leading-5 cursor-pointer"
>
<span class="text-gray-600">Created </span>
<span :title="dateFormat(lead.doc.creation)">
<Tooltip :text="dateFormat(lead.doc.creation, dateTooltipFormat)">
{{ timeAgo(lead.doc.creation) }}
</span>
</Tooltip>
<span>&nbsp;&middot;&nbsp;</span>
<span class="text-gray-600">Updated </span>
<span :title="dateFormat(lead.doc.modified)">
<Tooltip :text="dateFormat(lead.doc.modified, dateTooltipFormat)">
{{ timeAgo(lead.doc.modified) }}
</span>
</Tooltip>
</div>
</div>
</TabPanels>
Expand All @@ -225,6 +227,7 @@ import {
Autocomplete,
FormControl,
Dropdown,
Tooltip,
} from 'frappe-ui'
import { TransitionPresets, useTransition } from '@vueuse/core'
import { usersStore } from '@/stores/users'
Expand Down Expand Up @@ -436,4 +439,6 @@ const activeAgents = computed(() => {
}
})
})
const dateTooltipFormat = 'dddd, MMMM D, YYYY h:mm A'
</script>

0 comments on commit f306ad7

Please sign in to comment.