{#if profile.sessionExpired || profile.current?.jwt} {#if !commenting} (commenting = true)}> {$t('routes.post.addComment')} {#snippet action()} {$t('filter.sort.hot')} {$t('filter.sort.top.label')} {$t('filter.sort.new')} {/snippet} {:else} { if (cv.post.uri !== post.uri) return insertCommentIntoTree(tree, cv, false) commentCreated(cv) }} onfocus={() => (commenting = true)} tools={commenting} preview={commenting} placeholder={commenting ? undefined : $t('routes.post.addComment')} rows={commenting ? 7 : 1} oncancel={() => (commenting = false)} /> {/if} {/if} {#if commenting || !(profile.sessionExpired || profile.current.jwt)} {$t('filter.sort.hot')} {$t('filter.sort.top.label')} {$t('filter.sort.new')} {/if} {#snippet allCommentsPlaceholder()} {#snippet action()} {$t('routes.post.thread.allComments')} {/snippet} {/snippet} {#if singleThread && !showContext} {@render allCommentsPlaceholder()} {/if} {#if showContext && tree[0]} {$t('routes.post.thread.allComments')} {/if} {#if virtualize} {:else} {/if} {#if singleThread && !showContext} {@render allCommentsPlaceholder()} {/if}