FIX: correct arguments for "show top replies" in topic map (#26681)

Co-authored-by: Kelv <kelv@discourse.org>
This commit is contained in:
Kris 2024-04-19 08:17:05 -04:00 committed by GitHub
parent 9e31135eca
commit 5021f8a7da
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 4 deletions

View File

@ -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}}

View File

@ -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() {