Ghost/ghost/admin/app/components/gh-member-label-input-labs.hbs
Rishabh 03379544bd Added new label input dropdown on member detail behind filtering flag
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
2021-09-08 22:59:58 +05:30

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>