Files
Jarek RadoszandGitHub 325abf3502 DEV: Update DButton uses (#23333)
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
2023-08-31 11:49:35 +02:00

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>