mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-23 05:53:09 +03:00
commit
c4e8d73c71
@ -16,9 +16,10 @@
|
|||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
|
|
||||||
import { translate } from '@anticrm/platform'
|
import { IntlString, translate } from '@anticrm/platform'
|
||||||
import { ticker } from '..'
|
import { ticker } from '..'
|
||||||
import ui from '../plugin'
|
import ui from '../plugin'
|
||||||
|
import Tooltip from './Tooltip.svelte'
|
||||||
|
|
||||||
export let value: number
|
export let value: number
|
||||||
|
|
||||||
@ -43,6 +44,10 @@
|
|||||||
|
|
||||||
$: formatTime($ticker)
|
$: formatTime($ticker)
|
||||||
|
|
||||||
|
$: tooltip = new Date(value).toLocaleString('default', { minute:'2-digit', hour:'numeric', day:'2-digit', month: 'short', year: 'numeric'}) as IntlString
|
||||||
|
|
||||||
</script>
|
</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