mirror of
https://github.com/discourse/discourse.git
synced 2025-02-19 21:07:13 +08:00
26 lines
781 B
Handlebars
26 lines
781 B
Handlebars
{{#if this.buttons.length}}
|
|
<DPopover
|
|
@class="chat-composer-dropdown"
|
|
@options={{hash arrow=null}}
|
|
as |state|
|
|
>
|
|
<FlatButton
|
|
@disabled={{this.isDisabled}}
|
|
@class="chat-composer-dropdown__trigger-btn d-popover-trigger"
|
|
@title="chat.composer.toggle_toolbar"
|
|
@icon={{if state.isExpanded "times" "plus"}}
|
|
/>
|
|
<ul class="chat-composer-dropdown__list">
|
|
{{#each this.buttons as |button|}}
|
|
<li class="chat-composer-dropdown__item {{button.id}}">
|
|
<DButton
|
|
@class={{concat "chat-composer-dropdown__action-btn " button.id}}
|
|
@icon={{button.icon}}
|
|
@action={{button.action}}
|
|
@label={{button.label}}
|
|
/>
|
|
</li>
|
|
{{/each}}
|
|
</ul>
|
|
</DPopover>
|
|
{{/if}} |