mirror of
https://github.com/hanzoai/forum.git
synced 2026-09-30 21:51:19 +00:00
1. Use `this.` instead of `{{action}}` where applicable
2. Use `{{fn}}` instead of `@actionParam` where applicable
3. Use non-`@` versions of class/type/tabindex/aria-controls/aria-expanded
4. Remove `btn` class (it's added automatically to all DButtons)
5. Remove `type="button"` (it's the default)
6. Use `concat-class` helper
26 lines
548 B
Handlebars
26 lines
548 B
Handlebars
<div class="chat-message-collapser-header">
|
|
{{this.header}}
|
|
|
|
{{#if this.collapsed}}
|
|
<DButton
|
|
@action={{this.open}}
|
|
@icon="caret-right"
|
|
class="chat-message-collapser-button chat-message-collapser-closed"
|
|
/>
|
|
{{else}}
|
|
<DButton
|
|
@action={{this.close}}
|
|
@icon="caret-down"
|
|
class="chat-message-collapser-button chat-message-collapser-opened"
|
|
/>
|
|
{{/if}}
|
|
</div>
|
|
|
|
<div
|
|
class={{concat-class
|
|
"chat-message-collapser-body"
|
|
(if this.collapsed "hidden")
|
|
}}
|
|
>
|
|
{{yield this.collapsed}}
|
|
</div> |