mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-30 21:45:01 +02:00
UBERF-5603 (#4754)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user