2021-08-12 15:21:18 +03:00
|
|
|
<GhTokenInput
|
|
|
|
@extra={{hash
|
|
|
|
tokenComponent="gh-token-input/label-token-labs"
|
|
|
|
}}
|
2021-09-08 20:29:41 +03:00
|
|
|
@class="gh-member-label-input-labs"
|
2021-08-12 15:21:18 +03:00
|
|
|
@onChange={{this.updateLabels}}
|
|
|
|
@onCreate={{this.createLabel}}
|
|
|
|
@options={{this.availableLabels}}
|
|
|
|
@renderInPlace={{true}}
|
|
|
|
@selected={{this.selectedLabels}}
|
|
|
|
@showCreateWhen={{this.hideCreateOptionOnMatchingLabel}}
|
|
|
|
@triggerId={{this.triggerId}}
|
|
|
|
@selectedItemComponent="gh-token-input/label-selected-item-labs"
|
|
|
|
@disabled={{@disabled}}
|
2021-09-10 15:37:00 +03:00
|
|
|
@allowCreation={{this.args.allowCreation}}
|
2021-08-12 15:21:18 +03:00
|
|
|
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}}
|
2021-09-07 14:20:29 +03:00
|
|
|
<span class="dropdown-action-icon" {{on "mouseup" (fn this.editLabel label)}}>
|
2021-08-12 15:21:18 +03:00
|
|
|
{{svg-jar "pen"}}
|
|
|
|
</span>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
</GhTokenInput>
|