mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-27 03:39:43 +03:00
fix(ui): bind attributes to PublishWidgetList
list (#2952)
Some checks are pending
ci / ci (push) Waiting to run
build & push docker container / docker (push) Waiting to run
Some checks are pending
ci / ci (push) Waiting to run
build & push docker container / docker (push) Waiting to run
This commit is contained in:
parent
dd6fab86ee
commit
dbf743afd9
2 changed files with 2 additions and 1 deletions
|
@ -37,6 +37,7 @@ function isFirstItem(index: number) {
|
||||||
<template v-if="isHydrated && currentUser">
|
<template v-if="isHydrated && currentUser">
|
||||||
<PublishWidget
|
<PublishWidget
|
||||||
v-for="(_, index) in threadItems" :key="`${draftKey}-${index}`"
|
v-for="(_, index) in threadItems" :key="`${draftKey}-${index}`"
|
||||||
|
v-bind="$attrs"
|
||||||
:draft-key="draftKey"
|
:draft-key="draftKey"
|
||||||
:draft-item-index="index"
|
:draft-item-index="index"
|
||||||
:expanded="isFirstItem(index) ? expanded : true"
|
:expanded="isFirstItem(index) ? expanded : true"
|
||||||
|
|
|
@ -88,7 +88,7 @@ onReactivated(() => {
|
||||||
<PublishWidgetList
|
<PublishWidgetList
|
||||||
v-if="currentUser"
|
v-if="currentUser"
|
||||||
ref="publishWidget"
|
ref="publishWidget"
|
||||||
border="y base"
|
class="border-y border-base"
|
||||||
:draft-key="replyDraft!.key"
|
:draft-key="replyDraft!.key"
|
||||||
:initial="replyDraft!.draft"
|
:initial="replyDraft!.draft"
|
||||||
@published="refreshContext()"
|
@published="refreshContext()"
|
||||||
|
|
Loading…
Reference in a new issue