32 lines
922 B
Handlebars
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> |