mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-07 03:22:21 +03:00
38a3962368
refs https://github.com/TryGhost/Team/issues/969 A lot of power of filtering members comes from ability to perform actions on the filtered member list. This change adds bulk operation actions on the the UI to apply on filtered members, but has not wired them up to the API yet. - adds unsubscribe bulk operation UI - adds label addition bulk operation UI - adds label removal bulk operation UI - adds new single label selection UI for add/remove label to members UI
37 lines
1.3 KiB
Handlebars
37 lines
1.3 KiB
Handlebars
<header class="modal-header" data-test-modal="delete-members">
|
|
<h1>Add Label</h1>
|
|
</header>
|
|
<a class="close" href="" role="button" title="Close" {{action "closeModal"}}>{{svg-jar "close"}}<span class="hidden">Close</span></a>
|
|
|
|
{{#if (not this.confirmed)}}
|
|
<div class="modal-body" data-test-state="add-label-unconfirmed">
|
|
<GhMemberSingleLabelInput @onChange={{action "setLabel"}} @triggerId="label-input" data-test-input="" />
|
|
<p class="mt2 ml1">
|
|
Will be added to the currently selected <span class="fw6" data-test-text="member-count">{{gh-pluralize this.model.memberCount "member"}}</span>
|
|
</p>
|
|
</div>
|
|
{{else}}
|
|
<div class="gh-content-box pa" data-test-state="add-label-complete">
|
|
</div>
|
|
{{/if}}
|
|
|
|
<div class="modal-footer">
|
|
{{#if (not this.confirmed)}}
|
|
<button {{action "closeModal"}} class="gh-btn" data-test-button="cancel">
|
|
<span>Cancel</span>
|
|
</button>
|
|
|
|
<GhTaskButton
|
|
@buttonText="Add Label"
|
|
@successText="Added"
|
|
@task={{this.deleteMembersTask}}
|
|
@class="gh-btn gh-btn-green gh-btn-icon"
|
|
data-test-button="confirm"
|
|
/>
|
|
{{else}}
|
|
<button {{action "closeModal"}} class="gh-btn gh-btn-black" data-test-button="close-modal">
|
|
<span>Close</span>
|
|
</button>
|
|
{{/if}}
|
|
</div>
|