Skip to content

Commit 7ae77a3

Browse files
committed
DEV: Remove legacy MountWidget usage in docs-topic component
Replaced conditional logic for `useGlimmerPostStream` with direct usage of the `Post` component, simplifying the `docs-topic` implementation.
1 parent cdf335b commit 7ae77a3

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

assets/javascripts/discourse/components/docs-topic.gjs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,7 @@ export default class DocsTopic extends Component {
7272

7373
<div class="topic-content">
7474
<h1>{{htmlSafe this.topic.fancyTitle}}</h1>
75-
76-
{{#if this.site.useGlimmerPostStream}}
77-
<Post @post={{this.model}} />
78-
{{else}}
79-
{{! template-lint-disable no-capital-arguments }}
80-
<MountWidget @widget="post" @model={{this.model}} @args={{this.post}} />
81-
{{/if}}
75+
<Post @post={{this.model}} />
8276
</div>
8377

8478
<a class="docs-nav-link more" href="/t/{{this.topic.id}}">

0 commit comments

Comments
 (0)