mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-23 08:48:01 +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'
|
import { getSpaceLink, getDmName } from '../utils'
|
||||||
|
|
||||||
export let dm: DirectMessage
|
export let value: DirectMessage
|
||||||
const client = getClient()
|
const client = getClient()
|
||||||
|
|
||||||
$: icon = client.getHierarchy().getClass(dm._class).icon
|
$: icon = client.getHierarchy().getClass(value._class).icon
|
||||||
$: link = getSpaceLink(dm._id)
|
$: link = getSpaceLink(value._id)
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{#if dm}
|
{#if value}
|
||||||
{#await getDmName(client, dm) then name}
|
{#await getDmName(client, value) then name}
|
||||||
<a class="flex-presenter" href={link}>
|
<a class="flex-presenter" href={link}>
|
||||||
<div class="icon">
|
<div class="icon">
|
||||||
{#if icon}
|
{#if icon}
|
||||||
|
@ -171,7 +171,7 @@
|
|||||||
{#if channel?._class === chunter.class.Channel}
|
{#if channel?._class === chunter.class.Channel}
|
||||||
<ChannelPresenter value={channel} />
|
<ChannelPresenter value={channel} />
|
||||||
{:else if channel}
|
{:else if channel}
|
||||||
<DmPresenter dm={channel} />
|
<DmPresenter value={channel} />
|
||||||
{/if}
|
{/if}
|
||||||
{/await}
|
{/await}
|
||||||
{#await getParticipants(comments, parent, employees) then participants}
|
{#await getParticipants(comments, parent, employees) then participants}
|
||||||
|
Loading…
Reference in New Issue
Block a user