mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-24 11:22:19 +03:00
04d27fac5f
refs https://github.com/TryGhost/Ghost/issues/15008 - Backup process had a slim benefit to keep around. Without it the removal process is much smoother. - The backup still happens on the server side if it's absolutely needed at some point in the future
28 lines
1.0 KiB
Handlebars
28 lines
1.0 KiB
Handlebars
<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}}
|
|
<p>
|
|
<strong>{{this.user.name}}</strong> and their <strong data-test-text="user-post-count">{{gh-pluralize this.user.count.posts 'post'}}</strong> will be permanently deleted.
|
|
</p>
|
|
{{else}}
|
|
<p>
|
|
<strong>{{this.user.name}}</strong> will be permanently deleted.
|
|
</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>
|