mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 02:40:53 -06:00
DEV: Update dynamic component hbs syntax (#29445)
The block form of `{{#component` is not supported by Glint tooling. They recommend using this `{{#let`-based syntax to achieve the same result
This commit is contained in:
parent
336d98732d
commit
b364a13ad3
@ -55,11 +55,17 @@
|
||||
{{/each}}
|
||||
</div>
|
||||
{{else}}
|
||||
{{#component
|
||||
this.reviewableComponent reviewable=this.reviewable tagName=""
|
||||
{{#let
|
||||
(component
|
||||
this.reviewableComponent reviewable=this.reviewable tagName=""
|
||||
)
|
||||
as |ReviewableComponent|
|
||||
}}
|
||||
<ReviewableScores @reviewable={{this.reviewable}} @tagName="" />
|
||||
{{/component}}
|
||||
{{! template-lint-disable no-shadowed-elements }}{{! (seems to be a false positive) }}
|
||||
<ReviewableComponent>
|
||||
<ReviewableScores @reviewable={{this.reviewable}} @tagName="" />
|
||||
</ReviewableComponent>
|
||||
{{/let}}
|
||||
{{/if}}
|
||||
</div>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user