mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-23 03:22:19 +03:00
Time tooltip
Signed-off-by: Denis Bykhov <80476319+BykhovDenis@users.noreply.github.com>
This commit is contained in:
parent
d13f4690b6
commit
4ed5101c15
@ -19,6 +19,7 @@
|
||||
import { translate } from '@anticrm/platform'
|
||||
import { ticker } from '..'
|
||||
import ui from '../plugin'
|
||||
import Tooltip from './Tooltip.svelte'
|
||||
|
||||
export let value: number
|
||||
|
||||
@ -43,6 +44,10 @@
|
||||
|
||||
$: formatTime($ticker)
|
||||
|
||||
$: tooltip = new Date(value).toLocaleString('default', { minute:'2-digit', hour:'numeric', day:'2-digit', month: 'short', year: 'numeric'})
|
||||
|
||||
</script>
|
||||
|
||||
<span style="white-space: nowrap;">{time}</span>
|
||||
<Tooltip label={tooltip}>
|
||||
<span style="white-space: nowrap;" >{time}</span>
|
||||
</Tooltip>
|
Loading…
Reference in New Issue
Block a user