UBERF-5603 (#4754)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov
2024-02-23 15:39:49 +07:00
committed by GitHub
parent cc8a1d549a
commit ffc8d1dfac
184 changed files with 2755 additions and 561 deletions
@@ -18,6 +18,7 @@
import { Button, ButtonKind, ButtonSize, IconThread } from '@hcengineering/ui'
import ChatMessagePopup from './ChatMessagePopup.svelte'
import { restrictionStore } from '@hcengineering/view-resources'
export let value: number | undefined
export let object: Doc
@@ -26,6 +27,8 @@
export let showCounter: boolean = true
export let compactMode: boolean = false
export let withInput: boolean = true
$: disabled = $restrictionStore.disableComments
</script>
{#if value && value > 0}
@@ -34,7 +37,7 @@
{size}
showTooltip={{
component: ChatMessagePopup,
props: { objectId: object._id, object, withInput }
props: { objectId: object._id, object, withInput: withInput && !disabled }
}}
>
<div slot="icon">