mirror of
https://github.com/status-im/consul.git
synced 2025-01-09 21:35:52 +00:00
6589cbbd0d
* ui: Add the most basic workspace root in /ui * We already have a LICENSE file in the repository root * Change directory path in build scripts ui-v2 -> ui * Make yarn install flags configurable from elsewhere * Minimal workspace root makefile * Call the new docker specific target * Update yarn in the docker build image * Reconfigure the netlify target and move to the higher makefile * Move ui-v2 -> ui/packages/consul-ui * Change repo root to refleect new folder structure * Temporarily don't hoist consul-api-double * Fixup CI configuration * Fixup lint errors * Fixup Netlify target
29 lines
966 B
Handlebars
29 lines
966 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> |