mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-01-22 16:46:28 +01:00
Enable comment hint for end of thread/conversation
This commit is contained in:
parent
19ed85f298
commit
d87f60665a
1 changed files with 4 additions and 1 deletions
|
@ -567,11 +567,12 @@ function TimelineItem({
|
||||||
!_differentAuthor &&
|
!_differentAuthor &&
|
||||||
!items[i - 1]._differentAuthor &&
|
!items[i - 1]._differentAuthor &&
|
||||||
!items[i + 1]._differentAuthor)));
|
!items[i + 1]._differentAuthor)));
|
||||||
|
const isEnd = i === items.length - 1;
|
||||||
return (
|
return (
|
||||||
<li
|
<li
|
||||||
key={`timeline-${statusID}`}
|
key={`timeline-${statusID}`}
|
||||||
class={`timeline-item-container timeline-item-container-type-${type} timeline-item-container-${
|
class={`timeline-item-container timeline-item-container-type-${type} timeline-item-container-${
|
||||||
i === 0 ? 'start' : i === items.length - 1 ? 'end' : 'middle'
|
i === 0 ? 'start' : isEnd ? 'end' : 'middle'
|
||||||
} ${_differentAuthor ? 'timeline-item-diff-author' : ''}`}
|
} ${_differentAuthor ? 'timeline-item-diff-author' : ''}`}
|
||||||
>
|
>
|
||||||
<Link class="status-link timeline-item" to={url}>
|
<Link class="status-link timeline-item" to={url}>
|
||||||
|
@ -581,12 +582,14 @@ function TimelineItem({
|
||||||
<Status
|
<Status
|
||||||
statusID={statusID}
|
statusID={statusID}
|
||||||
instance={instance}
|
instance={instance}
|
||||||
|
enableCommentHint={isEnd}
|
||||||
// allowFilters={allowFilters}
|
// allowFilters={allowFilters}
|
||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
<Status
|
<Status
|
||||||
status={item}
|
status={item}
|
||||||
instance={instance}
|
instance={instance}
|
||||||
|
enableCommentHint={isEnd}
|
||||||
// allowFilters={allowFilters}
|
// allowFilters={allowFilters}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
|
Loading…
Reference in a new issue