mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 22:43:30 +03:00
33 lines
1.0 KiB
Handlebars
33 lines
1.0 KiB
Handlebars
<GhTokenInput
|
|
@extra={{hash
|
|
tokenComponent="gh-token-input/label-token-labs"
|
|
}}
|
|
@class="gh-member-label-input-labs"
|
|
@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}}
|
|
@allowCreation={{this.args.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>
|