diff --git a/plugins/chunter-resources/src/components/ChannelPanel.svelte b/plugins/chunter-resources/src/components/ChannelPanel.svelte index e85c8c5cda..5221e8f0e3 100644 --- a/plugins/chunter-resources/src/components/ChannelPanel.svelte +++ b/plugins/chunter-resources/src/components/ChannelPanel.svelte @@ -63,6 +63,6 @@ {:else if object}
- +
{/if} diff --git a/plugins/chunter-resources/src/components/ChannelView.svelte b/plugins/chunter-resources/src/components/ChannelView.svelte index b352b7e12e..d2592af1cb 100644 --- a/plugins/chunter-resources/src/components/ChannelView.svelte +++ b/plugins/chunter-resources/src/components/ChannelView.svelte @@ -14,34 +14,54 @@ --> - - - { - openThread(e.detail) - }} -/> +
+ +
+
+ + +
+ + {#if asideShown} + +
+ +
+ +
+
+ {/if} +
+
diff --git a/plugins/chunter-resources/src/components/chat/Chat.svelte b/plugins/chunter-resources/src/components/chat/Chat.svelte index d306449cb9..762ce4079c 100644 --- a/plugins/chunter-resources/src/components/chat/Chat.svelte +++ b/plugins/chunter-resources/src/components/chat/Chat.svelte @@ -69,11 +69,6 @@ } } - defineSeparators('chat', [ - { minSize: 20, maxSize: 40, size: 30, float: 'navigator' }, - { size: 'auto', minSize: 30, maxSize: 'auto', float: undefined } - ]) - $: selectedContextId && notifyContextQuery.query( notification.class.DocNotifyContext, @@ -88,9 +83,10 @@ object = res[0] }) - $: isDocChatOpened = - selectedContext !== undefined && - ![chunter.class.Channel, chunter.class.DirectMessage].includes(selectedContext.attachedToClass) + defineSeparators('chat', [ + { minSize: 20, maxSize: 40, size: 30, float: 'navigator' }, + { size: 'auto', minSize: 30, maxSize: 'auto', float: undefined } + ])
@@ -101,12 +97,8 @@ : 'landscape'} background-comp-header-color" >
- {#if !isDocChatOpened} - - - {:else if object} - - {/if} + +
@@ -132,8 +124,7 @@ } }} /> - {/if} - {#if selectedContext && object} + {:else if selectedContext && object} {#key selectedContext._id} {/key} diff --git a/plugins/chunter-resources/src/components/chat/DocChatPanel.svelte b/plugins/chunter-resources/src/components/chat/DocChatPanel.svelte index a7f3816bf5..5c6a6ad949 100644 --- a/plugins/chunter-resources/src/components/chat/DocChatPanel.svelte +++ b/plugins/chunter-resources/src/components/chat/DocChatPanel.svelte @@ -78,57 +78,55 @@ } -
-
- { - openDoc(client.getHierarchy(), object) - }} - /> -
+
+ { + openDoc(client.getHierarchy(), object) + }} + /> +
-
-
-
- {#if objectChatPanel} - {#await getResource(objectChatPanel.titleProvider) then getTitle} -
- {getTitle(object)} -
- {/await} +
+
+
- - - - {#each filters as filter} - {#key filter._id} - {#await getMessagesCount(filter, activityMessages) then count} - - - {#if filter._id === activity.ids.AllFilter || count > 0} -
{ - handleFilterSelected(filter) - }} - > - -
- {/if} - {/await} - {/key} - {/each} + {#if objectChatPanel} + {#await getResource(objectChatPanel.titleProvider) then getTitle} +
+ {getTitle(object)} +
+ {/await} + {/if}
+ + +{#each filters as filter} + {#key filter._id} + {#await getMessagesCount(filter, activityMessages) then count} + + + {#if filter._id === activity.ids.AllFilter || count > 0} +
{ + handleFilterSelected(filter) + }} + > + +
+ {/if} + {/await} + {/key} +{/each} +