This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/plugins/chat/assets/javascripts/discourse/components/chat-selection-manager.hbs
Martin Brennan e4fe322fa4
DEV: Move chat transcript tests into system specs
We are all in on system specs, so this commit moves all
the chat quoting acceptance tests (some of which have been
skipped for a while) into system specs.
2022-12-13 15:42:11 +10:00

22 lines
1.2 KiB
Handlebars

<div class="chat-selection-management">
<div class="chat-selection-management-buttons">
<DButton @id="chat-quote-btn" @class="btn-secondary" @icon="quote-left" @label="chat.selection.quote_selection" @title="chat.selection.quote_selection" @disabled={{not this.anyMessagesSelected}} @action={{action "quoteMessages"}} />
{{#if this.site.desktopView}}
<DButton @id="chat-copy-btn" @class="btn-secondary" @icon="copy" @label="chat.selection.copy" @title="chat.selection.copy" @disabled={{not this.anyMessagesSelected}} @action={{action "copyMessages"}} />
{{/if}}
{{#if this.showMoveMessageButton}}
<DButton @id="chat-move-to-channel-btn" @class="btn-secondary" @icon="sign-out-alt" @label="chat.selection.move_selection_to_channel" @title="chat.selection.move_selection_to_channel" @disabled={{not this.anyMessagesSelected}} @action={{action "openMoveMessageModal"}} />
{{/if}}
<DButton @id="chat-cancel-selection-btn" @icon="times" @class="btn-secondary cancel-btn" @label="chat.selection.cancel" @title="chat.selection.cancel" @action={{this.cancelSelecting}} />
</div>
{{#if this.showChatQuoteSuccess}}
<div class="chat-selection-message">
{{i18n "chat.quote.copy_success"}}
</div>
{{/if}}
</div>