UX: Hide AI summary box if no summary or summarize button
This commit is contained in:
parent
6fb91b85ba
commit
0859989249
|
@ -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">
|
||||
|
|
Loading…
Reference in New Issue