mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-13 19:58:09 +00:00
1789 Fix dm presenter prop name for backlinks (#1791)
Signed-off-by: Denis Bunakalya <denis.bunakalya@xored.com>
This commit is contained in:
parent
aa4f882d81
commit
9704d950e3
@ -19,15 +19,15 @@
|
||||
|
||||
import { getSpaceLink, getDmName } from '../utils'
|
||||
|
||||
export let dm: DirectMessage
|
||||
export let value: DirectMessage
|
||||
const client = getClient()
|
||||
|
||||
$: icon = client.getHierarchy().getClass(dm._class).icon
|
||||
$: link = getSpaceLink(dm._id)
|
||||
$: icon = client.getHierarchy().getClass(value._class).icon
|
||||
$: link = getSpaceLink(value._id)
|
||||
</script>
|
||||
|
||||
{#if dm}
|
||||
{#await getDmName(client, dm) then name}
|
||||
{#if value}
|
||||
{#await getDmName(client, value) then name}
|
||||
<a class="flex-presenter" href={link}>
|
||||
<div class="icon">
|
||||
{#if icon}
|
||||
|
@ -171,7 +171,7 @@
|
||||
{#if channel?._class === chunter.class.Channel}
|
||||
<ChannelPresenter value={channel} />
|
||||
{:else if channel}
|
||||
<DmPresenter dm={channel} />
|
||||
<DmPresenter value={channel} />
|
||||
{/if}
|
||||
{/await}
|
||||
{#await getParticipants(comments, parent, employees) then participants}
|
||||
|
Loading…
Reference in New Issue
Block a user