mirror of
https://github.com/hcengineering/platform.git
synced 2026-08-17 18:05:42 +02:00
Adjust direct icon in inbox (#9736)
Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
@@ -14,13 +14,19 @@
|
||||
|
||||
<script lang="ts">
|
||||
import cardPlugin, { Card } from '@hcengineering/card'
|
||||
import { Component, IconSize } from '@hcengineering/ui'
|
||||
import { Component } from '@hcengineering/ui'
|
||||
import { getClient } from '@hcengineering/presentation'
|
||||
import communication from '@hcengineering/communication'
|
||||
|
||||
import NotifyMarker from './NotifyMarker.svelte'
|
||||
|
||||
export let size: IconSize = 'medium'
|
||||
export let card: Card
|
||||
export let count: number = 0
|
||||
|
||||
const client = getClient()
|
||||
const hierarchy = client.getHierarchy()
|
||||
|
||||
$: size = hierarchy.isDerived(card._class, communication.type.Direct) ? 'large' : 'medium'
|
||||
</script>
|
||||
|
||||
<div class="card-icon">
|
||||
|
||||
Reference in New Issue
Block a user