2021-08-16 12:52:50 +03:00
|
|
|
<div class="kg-input-bar absolute z-999" style={{this.style}} {{did-insert this.registerAndPositionElement}} ...attributes>
|
2021-08-23 17:59:53 +03:00
|
|
|
<GhInputWithSelect
|
|
|
|
@triggerClass="kg-link-input pa2 pr6 mih-100 ba br3 shadow-2 f8 lh-heading tracked-2 outline-0 h10 nudge-top--8 vertical"
|
|
|
|
@placeholder="Snippet name"
|
|
|
|
@options={{@snippets}}
|
|
|
|
@showCreate={{true}}
|
|
|
|
@searchEnabled={{false}}
|
|
|
|
@searchField="name"
|
|
|
|
@onChange={{this.selectSnippet}}
|
|
|
|
@renderInPlace={{false}}
|
|
|
|
@autofocus={{true}}
|
|
|
|
@onInput={{this.nameInput}}
|
|
|
|
as |snippet|
|
|
|
|
>
|
|
|
|
{{#if snippet.__isSuggestion__}}
|
|
|
|
{{snippet}}
|
|
|
|
{{else}}
|
|
|
|
{{snippet.name}}
|
|
|
|
<span class="dib w4 h4">{{svg-jar "reload"}}</span>
|
|
|
|
{{/if}}
|
|
|
|
</GhInputWithSelect>
|
2021-08-16 12:52:50 +03:00
|
|
|
</div>
|