UX: Hide AI summary box if no summary or summarize button

This commit is contained in:
carson chang 2024-07-22 15:13:03 -07:00 committed by GitHub
parent 6fb91b85ba
commit 0859989249
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 21 additions and 18 deletions

View File

@ -4,6 +4,7 @@ import { hash } from "@ember/helper";
import { action } from "@ember/object";
import { service } from "@ember/service";
import { htmlSafe } from "@ember/template";
import { or } from "truth-helpers";
import DButton from "discourse/components/d-button";
import PluginOutlet from "discourse/components/plugin-outlet";
import PrivateMessageMap from "discourse/components/topic-map/private-message-map";
@ -96,6 +97,7 @@ export default class TopicMap extends Component {
</section>
{{/unless}}
{{#if (or @model.summarizable @model.has_summary)}}
<section class="information toggle-summary">
{{#if @model.has_summary}}
<p>{{htmlSafe this.topRepliesSummaryInfo}}</p>
@ -116,6 +118,7 @@ export default class TopicMap extends Component {
{{/if}}
</PluginOutlet>
</section>
{{/if}}
{{#if @showPMMap}}
<section class="information private-message-map">