mirror of
https://github.com/hcengineering/platform.git
synced 2025-06-11 21:11:57 +00:00
Fix formatting
Signed-off-by: Anton Alexeyev <alexeyev.anton@gmail.com>
This commit is contained in:
parent
12e6f0d6f9
commit
8c76611fd2
@ -1,5 +1,4 @@
|
||||
<script lang="ts">
|
||||
|
||||
import { AnySvelteComponent, NavGroup, Scroller } from '@hcengineering/ui'
|
||||
import ChatNavItem from './chat/navigator/ChatNavItem.svelte'
|
||||
import { createQuery, getClient } from '@hcengineering/presentation'
|
||||
@ -47,15 +46,14 @@
|
||||
items = newItems
|
||||
}
|
||||
)
|
||||
|
||||
</script>
|
||||
|
||||
<Scroller shrink>
|
||||
{#if items.length > 0}
|
||||
<NavGroup
|
||||
_id='channels'
|
||||
label='channels'
|
||||
categoryName='channels'
|
||||
_id="channels"
|
||||
label="channels"
|
||||
categoryName="channels"
|
||||
highlighted={items.some((it) => it.id === object?._id)}
|
||||
isFold={false}
|
||||
empty={items.length === 0}
|
||||
|
@ -119,9 +119,12 @@
|
||||
? readonly || (channel as Space).archived
|
||||
: readonly
|
||||
|
||||
$: separatorIndex = account.role === AccountRole.ReadOnlyGuest
|
||||
? messages.length - 1
|
||||
: ($newTimestampStore !== undefined ? messages.findIndex((message) => (message.createdOn ?? 0) >= ($newTimestampStore ?? 0)) : -1)
|
||||
$: separatorIndex =
|
||||
account.role === AccountRole.ReadOnlyGuest
|
||||
? messages.length - 1
|
||||
: $newTimestampStore !== undefined
|
||||
? messages.findIndex((message) => (message.createdOn ?? 0) >= ($newTimestampStore ?? 0))
|
||||
: -1
|
||||
|
||||
$: if (!freeze && !isPageHidden && isScrollInitialized) {
|
||||
read()
|
||||
@ -615,7 +618,11 @@
|
||||
{@const isSelected = message._id === selectedMessageId}
|
||||
{@const canGroup = canGroupChatMessages(message, messages[index - 1])}
|
||||
{#if separatorIndex === index}
|
||||
<ActivityMessagesSeparator bind:element={separatorDiv} label={activity.string.New} visible={account.role !== AccountRole.ReadOnlyGuest}/>
|
||||
<ActivityMessagesSeparator
|
||||
bind:element={separatorDiv}
|
||||
label={activity.string.New}
|
||||
visible={account.role !== AccountRole.ReadOnlyGuest}
|
||||
/>
|
||||
{/if}
|
||||
|
||||
{#if !isThread && message.createdOn && $datesStore.includes(message.createdOn)}
|
||||
|
@ -129,7 +129,9 @@
|
||||
{count}
|
||||
title={item.title}
|
||||
description={item.description}
|
||||
secondaryNotifyMarker={context === undefined ? false : (context?.lastViewedTimestamp ?? 0) < (context?.lastUpdateTimestamp ?? 0)}
|
||||
secondaryNotifyMarker={context === undefined
|
||||
? false
|
||||
: (context?.lastViewedTimestamp ?? 0) < (context?.lastUpdateTimestamp ?? 0)}
|
||||
{actions}
|
||||
{type}
|
||||
on:click={() => {
|
||||
|
Loading…
Reference in New Issue
Block a user