mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-23 11:31:57 +03:00
ezqms-537: make thread header hidable (#4458)
Signed-off-by: Alexey Zinoviev <alexey.zinoviev@xored.com>
This commit is contained in:
parent
960842863b
commit
b461e3bb09
@ -25,6 +25,7 @@
|
||||
|
||||
export let _id: Ref<ActivityMessage>
|
||||
export let selectedMessageId: Ref<ActivityMessage> | undefined = undefined
|
||||
export let showHeader: boolean = true
|
||||
|
||||
const messageQuery = createQuery()
|
||||
const dispatch = createEventDispatcher()
|
||||
@ -43,19 +44,21 @@
|
||||
let content: HTMLDivElement | undefined = undefined
|
||||
</script>
|
||||
|
||||
<div class="header">
|
||||
<div class="title"><Label label={chunter.string.Thread} /></div>
|
||||
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
||||
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
||||
<div
|
||||
class="tool"
|
||||
on:click={() => {
|
||||
dispatch('close')
|
||||
}}
|
||||
>
|
||||
<IconClose size="medium" />
|
||||
{#if showHeader}
|
||||
<div class="header">
|
||||
<div class="title"><Label label={chunter.string.Thread} /></div>
|
||||
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
||||
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
||||
<div
|
||||
class="tool"
|
||||
on:click={() => {
|
||||
dispatch('close')
|
||||
}}
|
||||
>
|
||||
<IconClose size="medium" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{#if message}
|
||||
<ThreadParentMessage {message} />
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user