mirror of
https://github.com/status-im/consul.git
synced 2025-01-09 21:35:52 +00:00
5c0ec13fb9
* ui: Apply native class codemod to all services * ui: Apply native class codemod to routes * ui: Apply native class codemod to controllers * Fix up ember proxy `content` issue * Add a CreateTime on policy creation * Minor formatting * Convert child based saving to use ec instead of custom approach * Remove custom event source repo wrapping initializer * Repos here are no longer proxy objects revert to using them normally * Remove areas of code that were used to set up source backed repos
31 lines
969 B
Handlebars
31 lines
969 B
Handlebars
<div
|
|
...attributes
|
|
>
|
|
{{yield}}
|
|
<YieldSlot @name="create">{{yield}}</YieldSlot>
|
|
<label class="type-text">
|
|
<span><YieldSlot @name="label">{{yield}}</YieldSlot></span>
|
|
{{#if isOpen}}
|
|
<DataSource
|
|
@src={{concat '/' (or nspace 'default') '/' dc '/' (pluralize type)}}
|
|
@onchange={{action (mut allOptions) value="data"}}
|
|
/>
|
|
{{/if}}
|
|
<PowerSelect
|
|
@search={{action "search"}}
|
|
@options={{options}}
|
|
@loadingMessage="Loading..."
|
|
@searchMessage="No possible options"
|
|
@searchPlaceholder={{placeholder}}
|
|
@onOpen={{action (mut isOpen) true}}
|
|
@onClose={{action (mut isOpen) false}}
|
|
@onChange={{action "change" "items[]" items}} as |item|>
|
|
<YieldSlot @name="option" @params={{block-params item}}>{{yield}}</YieldSlot>
|
|
</PowerSelect>
|
|
</label>
|
|
{{#if (gt items.length 0)}}
|
|
<YieldSlot @name="set">{{yield}}</YieldSlot>
|
|
{{else}}
|
|
|
|
{{/if}}
|
|
</div> |