2020-02-14 12:34:01 +03:00
|
|
|
<GhTokenInput
|
|
|
|
@extra={{hash
|
|
|
|
tokenComponent="gh-token-input/label-token"
|
|
|
|
}}
|
2022-02-08 14:48:55 +03:00
|
|
|
@class="gh-member-label-input"
|
2020-12-09 22:32:31 +03:00
|
|
|
@onChange={{this.updateLabels}}
|
|
|
|
@onCreate={{this.createLabel}}
|
2020-02-14 12:34:01 +03:00
|
|
|
@options={{this.availableLabels}}
|
|
|
|
@renderInPlace={{true}}
|
2020-12-09 22:32:31 +03:00
|
|
|
@selected={{this.selectedLabels}}
|
|
|
|
@showCreateWhen={{this.hideCreateOptionOnMatchingLabel}}
|
2020-02-14 12:34:01 +03:00
|
|
|
@triggerId={{this.triggerId}}
|
2022-02-08 14:48:55 +03:00
|
|
|
@selectedItemComponent="gh-token-input/label-selected-item"
|
2020-12-09 22:32:31 +03:00
|
|
|
@disabled={{@disabled}}
|
2022-02-08 14:48:55 +03:00
|
|
|
@allowCreation={{@allowCreation}}
|
|
|
|
as |label|
|
|
|
|
>
|
|
|
|
<div style="display: flex">
|
|
|
|
<span
|
|
|
|
class="dropdown-label"
|
|
|
|
style="flex-grow: 1"
|
|
|
|
title="{{label.name}}"
|
|
|
|
data-test-label-filter={{label.name}}>
|
|
|
|
{{label.name}}
|
|
|
|
</span>
|
|
|
|
{{#if label.slug}}
|
|
|
|
<span class="dropdown-action-icon" {{on "mouseup" (fn this.editLabel label)}}>
|
|
|
|
{{svg-jar "pen"}}
|
|
|
|
</span>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
</GhTokenInput>
|