mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-22 19:11:33 +03:00
UBERF-5595: hide link preview for chat (#4752)
Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
parent
6f89f2fd2b
commit
495327a272
@ -35,6 +35,7 @@
|
||||
export let hoverable = true
|
||||
export let hoverStyles: 'borderedHover' | 'filledHover' = 'borderedHover'
|
||||
export let withShowMore: boolean = true
|
||||
export let showLinksPreview = true
|
||||
export let onClick: (() => void) | undefined = undefined
|
||||
export let onReply: (() => void) | undefined = undefined
|
||||
|
||||
@ -64,6 +65,7 @@
|
||||
hoverable,
|
||||
hoverStyles,
|
||||
withShowMore,
|
||||
showLinksPreview,
|
||||
onClick,
|
||||
onReply
|
||||
}}
|
||||
|
@ -510,6 +510,7 @@
|
||||
isHighlighted={isSelected}
|
||||
shouldScroll={isSelected}
|
||||
withShowMore={false}
|
||||
showLinksPreview={false}
|
||||
/>
|
||||
</div>
|
||||
{/each}
|
||||
|
@ -47,6 +47,7 @@
|
||||
export let inline = false
|
||||
export let hoverStyles: 'borderedHover' | 'filledHover' = 'borderedHover'
|
||||
export let withShowMore: boolean = true
|
||||
export let showLinksPreview = true
|
||||
export let onClick: (() => void) | undefined = undefined
|
||||
export let onReply: (() => void) | undefined = undefined
|
||||
|
||||
@ -95,7 +96,7 @@
|
||||
parentObject = result
|
||||
})
|
||||
|
||||
$: links = getLinks(value?.message)
|
||||
$: links = showLinksPreview ? getLinks(value?.message) : []
|
||||
|
||||
function getLinks (content?: string): HTMLLinkElement[] {
|
||||
if (!content) {
|
||||
|
@ -73,6 +73,7 @@
|
||||
{hoverable}
|
||||
{hoverStyles}
|
||||
{withShowMore}
|
||||
showLinksPreview={false}
|
||||
{onClick}
|
||||
{onReply}
|
||||
/>
|
||||
|
@ -19,4 +19,11 @@
|
||||
export let message: ActivityMessage
|
||||
</script>
|
||||
|
||||
<ActivityMessagePresenter value={message} hideFooter hoverStyles="filledHover" withShowMore={false} skipLabel />
|
||||
<ActivityMessagePresenter
|
||||
value={message}
|
||||
hideFooter
|
||||
hoverStyles="filledHover"
|
||||
withShowMore={false}
|
||||
skipLabel
|
||||
showLinksPreview={false}
|
||||
/>
|
||||
|
Loading…
Reference in New Issue
Block a user