Ghost/ghost/admin/app/components/modal-delete-user.hbs

32 lines
1.3 KiB
Handlebars
Raw Normal View History

<header class="modal-header" data-test-modal="delete-user">
<h1>Are you sure you want to delete this user?</h1>
</header>
<a class="close" href="" role="button" title="Close" {{action "closeModal"}}>{{svg-jar "close"}}<span class="hidden">Close</span></a>
<div class="modal-body">
{{#if this.user.count.posts}}
2020-02-07 12:46:05 +03:00
<p>
<strong>{{this.user.name}}</strong> will be permanently deleted and their <strong data-test-text="user-post-count">{{gh-pluralize this.user.count.posts 'post'}}</strong> will be automatically assigned to <strong>{{this.ownerUser.name}}</strong>.
</p>
<p class="gh-transfer-tag">
To make these easy to find in the future, each post will be given an internal tag of <strong>#{{this.user.slug}}</strong>
2020-02-07 12:46:05 +03:00
</p>
{{else}}
2020-02-07 12:46:05 +03:00
<p>
<strong>{{this.user.name}}</strong> will be permanently deleted.
2020-02-07 12:46:05 +03:00
</p>
{{/if}}
</div>
<div class="modal-footer">
<button class="gh-btn" data-test-button="cancel-delete-user" type="button" {{action "closeModal"}}>
<span>Cancel</span>
</button>
<GhTaskButton @buttonText="Delete user"
@successText="Deleted"
@task={{this.deleteUser}}
@class="gh-btn gh-btn-red gh-btn-icon"
data-test-button="confirm-delete-user" />
</div>