mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 17:12:45 +08:00
FIX: correct arguments for "show top replies" in topic map (#26681)
Co-authored-by: Kelv <kelv@discourse.org>
This commit is contained in:
parent
9e31135eca
commit
5021f8a7da
|
@ -1,5 +1,5 @@
|
|||
<div class="summary-box__container">
|
||||
{{#if this.topRepliesSummaryEnabled}}
|
||||
{{#if @topic.has_summary}}
|
||||
<p>{{html-safe this.topRepliesSummaryInfo}}</p>
|
||||
{{/if}}
|
||||
<div class="summarization-buttons">
|
||||
|
@ -23,8 +23,7 @@
|
|||
/>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
|
||||
{{#if this.topRepliesSummaryEnabled}}
|
||||
{{#if @topic.has_summary}}
|
||||
<DButton
|
||||
@action={{if @postStream.summary @cancelFilter @showTopReplies}}
|
||||
@translatedTitle={{this.topRepliesTitle}}
|
||||
|
|
|
@ -40,7 +40,7 @@ export default class SummaryBox extends Component {
|
|||
}
|
||||
|
||||
get topRepliesSummaryEnabled() {
|
||||
return this.args.topic.has_summary;
|
||||
return this.args.postStream.summary;
|
||||
}
|
||||
|
||||
get topRepliesSummaryInfo() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user