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-channel-selector-modal-inner.hbs
2022-12-28 13:11:12 +00:00

32 lines
922 B
Handlebars

<DModalBody @title="chat.channel_selector.title">
<div id="chat-channel-selector-modal-inner">
<div class="chat-channel-selector-input-container">
<span class="search-icon">
{{d-icon "search"}}
</span>
<Input
id="chat-channel-selector-input"
@type="text"
@value={{this.filter}}
autocomplete="off"
{{on "input" (action "search" value="target.value")}}
/>
</div>
<div class="channels">
<ConditionalLoadingSpinner @condition={{this.loading}}>
{{#each this.channels as |channel|}}
<ChatChannelSelectionRow
@model={{channel}}
@onClick={{this.switchChannel}}
/>
{{else}}
<div class="no-channels-notice">
{{i18n "chat.channel_selector.no_channels"}}
</div>
{{/each}}
</ConditionalLoadingSpinner>
</div>
</div>
</DModalBody>