mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-11 09:53:32 +03:00
03379544bd
closes https://github.com/TryGhost/Team/issues/977 A new label input dropdown was added behind filtering labs flag along with new filtering UI on members list screen, which includes member editing directly via the dropdown. This adds the same editing function to the members detail screen too behind the flag
32 lines
978 B
Handlebars
32 lines
978 B
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}}
|
|
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>
|