mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-02 08:13:34 +03:00
a2fc31aa0a
Refs https://www.notion.so/ghost/Unify-icons-across-Admin-7e3d124d5db34c63beccca029af595e7 - Reduced duplicate plus icons - Replaced fill trash, info and pen icons by stroke icons - Removed fill styles from default button classes - Removed launch-wizard css
35 lines
1.1 KiB
Handlebars
35 lines
1.1 KiB
Handlebars
<GhTokenInput
|
|
@extra={{hash
|
|
tokenComponent="gh-token-input/label-token"
|
|
}}
|
|
@class="gh-member-label-input"
|
|
@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"
|
|
@disabled={{@disabled}}
|
|
@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 (and @allowEdit label.slug)}}
|
|
<button type="button" class="gh-btn-icon dropdown-action-icon" {{on "mouseup" (fn this.editLabel label)}} aria-label="Edit label {{label.name}}" data-test-edit-label={{label.name}}>
|
|
<span>
|
|
{{svg-jar "pen"}}
|
|
</span>
|
|
</button>
|
|
{{/if}}
|
|
</div>
|
|
</GhTokenInput>
|