Ghost/ghost/admin/app/components/gh-power-select/trigger.hbs
Gabriel Csapo f22a758a3b [chore] run the no-implicit-this codemod (#2244)
refs https://github.com/TryGhost/Admin/pull/2238

Follow up to #2238, this should remove the existing no-implicit-this lint errors and any new violations should be flagged right away.

* run the no-implicit-this codemod
* updated todos
2022-02-02 17:09:02 +00:00

15 lines
696 B
Handlebars

{{#if @select.selected}}
{{#if @selectedItemComponent}}
{{component @selectedItemComponent extra=(readonly @extra) option=(readonly @option.selected) select=(readonly @select)}}
{{else}}
<span class="ember-power-select-selected-item">{{yield @select.selected this.select}}</span>
{{/if}}
{{#if (and @allowClear (not @select.disabled))}}
<span class="ember-power-select-clear-btn" {{on "mousedown" this.clear}} {{on "touchstart" this.clear}}>&times;</span>
{{/if}}
{{else}}
{{component @placeholderComponent placeholder=@placeholder}}
{{/if}}
{{!-- this next line is the only difference from original trigger.hbs --}}
{{svg-jar "arrow-down-small"}}