mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-30 11:54:33 +03:00
beb5ae1737
no issue
- This will help with the octane migration and you can still run the lint rules even when they are todos. (Checkout the docs at 158b119667/docs/todos.md
) The good news is any new code will be checked against the recommended config.
- I fixed all the auto fixable things we could get in this PR as well
69 lines
2.8 KiB
Handlebars
69 lines
2.8 KiB
Handlebars
<header class="modal-header" data-test-modal="delete-members">
|
|
<h1>Delete selected members?</h1>
|
|
</header>
|
|
<a class="close" href="" role="button" title="Close" {{action "closeModal"}}>{{svg-jar "close"}}<span class="hidden">Close</span></a>
|
|
|
|
{{#if this.confirmed}}
|
|
<div class="gh-content-box pa" data-test-state="delete-complete">
|
|
{{#if this.error}}
|
|
<div class="flex items-center">
|
|
{{svg-jar "warning" class="w4 h4 fill-red mr2 nudge-top--3"}}
|
|
<div>
|
|
<p class="ma0 pa0">
|
|
<span class="fw5" data-test-text="delete-error">{{this.error}}</span>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
{{else}}
|
|
<div class="flex items-center">
|
|
{{svg-jar "check-circle" class="w4 h4 stroke-green mr2"}}
|
|
<p class="ma0 pa0">
|
|
<span class="fw6" data-test-text="deleted-count">{{gh-pluralize this.response.stats.successful "member"}}</span>
|
|
successfully deleted
|
|
</p>
|
|
</div>
|
|
{{#if this.response.stats.unsuccessful}}
|
|
<div class="flex items-start mt2" data-test-bulk-delete-errors>
|
|
{{svg-jar "warning" class="w4 h4 fill-red mr2 nudge-top--3"}}
|
|
<div>
|
|
<p class="ma0 pa0">
|
|
<span class="fw5" data-test-text="invalid-count">{{gh-pluralize this.response.stats.unsuccessful "member"}}</span>
|
|
failed to delete
|
|
</p>
|
|
</div>
|
|
</div>
|
|
{{/if}}
|
|
{{/if}}
|
|
</div>
|
|
{{else}}
|
|
<div class="modal-body" data-test-state="delete-unconfirmed">
|
|
<p>
|
|
You're about to delete
|
|
<strong data-test-text="delete-count">{{gh-pluralize this.model.memberCount "member"}}</strong>.
|
|
This is permanent! All Ghost data will be deleted, this will have no effect on subscriptions in Stripe.
|
|
</p>
|
|
<p>
|
|
A backup of your selection will be automatically downloaded to your device before deletion.
|
|
</p>
|
|
</div>
|
|
{{/if}}
|
|
|
|
<div class="modal-footer">
|
|
{{#if this.confirmed}}
|
|
<button class="gh-btn gh-btn-black" data-test-button="close-modal" type="button" {{action "closeModal"}}>
|
|
<span>Close</span>
|
|
</button>
|
|
{{else}}
|
|
<button class="gh-btn" data-test-button="cancel" type="button" {{action "closeModal"}}>
|
|
<span>Cancel</span>
|
|
</button>
|
|
|
|
<GhTaskButton
|
|
@buttonText="Download backup & delete members"
|
|
@successText="Deleted"
|
|
@task={{this.deleteMembersTask}}
|
|
@class="gh-btn gh-btn-red gh-btn-icon"
|
|
data-test-button="confirm"
|
|
/>
|
|
{{/if}}
|
|
</div> |