mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-20 08:37:53 +02:00
More clipboard write fixes, add utility function (#2286)
Signed-off-by: Alexander Onnikov <alexander.onnikov@xored.com>
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
-->
|
||||
<script lang="ts">
|
||||
import { Asset, IntlString } from '@hcengineering/platform'
|
||||
import { copyTextToClipboard } from '@hcengineering/presentation'
|
||||
import { Button } from '@hcengineering/ui'
|
||||
|
||||
export let icon: Asset
|
||||
@@ -25,5 +26,5 @@
|
||||
{icon}
|
||||
kind={'transparent'}
|
||||
showTooltip={{ label: title, direction: 'bottom' }}
|
||||
on:click={() => navigator.clipboard.writeText(text)}
|
||||
on:click={() => copyTextToClipboard(text)}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user