mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-22 21:50:34 +03:00
Add small chat ui fixes (#6028)
Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
parent
617c144daf
commit
51475b2979
@ -197,6 +197,7 @@ export class ChannelDataProvider implements IChannelDataProvider {
|
||||
const isLoadingLatest = startPosition === undefined || startPosition === -1 || count - startPosition <= this.limit
|
||||
|
||||
if (loadAll) {
|
||||
this.isTailLoading.set(true)
|
||||
this.loadTail(undefined, combineActivityMessages)
|
||||
} else if (isLoadingLatest) {
|
||||
const startIndex = Math.max(0, count - this.limit)
|
||||
|
@ -68,6 +68,7 @@
|
||||
const minMsgHeightRem = 2
|
||||
|
||||
const client = getClient()
|
||||
const hierarchy = client.getHierarchy()
|
||||
const inboxClient = InboxNotificationsClientImpl.getClient()
|
||||
const contextByDocStore = inboxClient.contextByDoc
|
||||
|
||||
@ -650,7 +651,7 @@
|
||||
{/if}
|
||||
<slot name="header" />
|
||||
|
||||
{#if displayMessages.length === 0}
|
||||
{#if displayMessages.length === 0 && !hierarchy.isDerived(objectClass, activity.class.ActivityMessage)}
|
||||
<BlankView
|
||||
icon={chunter.icon.Thread}
|
||||
header={chunter.string.NoMessagesInChannel}
|
||||
|
@ -14,23 +14,16 @@
|
||||
-->
|
||||
<script lang="ts">
|
||||
import { Asset } from '@hcengineering/platform'
|
||||
import {
|
||||
AnySvelteComponent,
|
||||
Icon,
|
||||
IconFolder,
|
||||
IconSize,
|
||||
IconWithEmoji,
|
||||
getPlatformColorDef,
|
||||
themeStore
|
||||
} from '@hcengineering/ui'
|
||||
import { AnySvelteComponent, Icon, IconSize, IconWithEmoji, getPlatformColorDef, themeStore } from '@hcengineering/ui'
|
||||
import view, { IconProps } from '@hcengineering/view'
|
||||
import document from '@hcengineering/document'
|
||||
|
||||
import { ComponentType } from 'svelte'
|
||||
|
||||
export let value: IconProps
|
||||
export let size: IconSize
|
||||
export let iconWithEmoji: AnySvelteComponent | Asset | ComponentType | undefined = view.ids.IconWithEmoji
|
||||
export let defaultIcon: AnySvelteComponent | Asset | ComponentType = IconFolder
|
||||
export let defaultIcon: AnySvelteComponent | Asset | ComponentType = document.icon.Document
|
||||
</script>
|
||||
|
||||
<Icon
|
||||
|
Loading…
Reference in New Issue
Block a user