2019-01-02 12:58:55 +03:00
<header class="modal-header" data-test-modal="delete-user">
2015-11-18 13:50:48 +03:00
<h1>Are you sure you want to delete this user?</h1>
</header>
2020-05-28 19:11:21 +03:00
<a class="close" href="" role="button" title="Close" {{ action "closeModal" }} > {{ svg-jar "close" }} <span class="hidden">Close</span></a>
2015-11-18 13:50:48 +03:00
<div class="modal-body">
2019-12-13 17:20:29 +03:00
{{ # if this .user .count .posts }}
2020-02-07 12:46:05 +03:00
<p>
2020-08-10 13:16:03 +03:00
<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. If you don’ t want to lose these posts, you should assign them to a different author.
2020-02-07 12:46:05 +03:00
</p>
<p>
A backup will be automatically downloaded to your device before deletion.
</p>
2015-11-18 13:50:48 +03:00
{{ else }}
2020-02-07 12:46:05 +03:00
<p>
<strong> {{ this .user .name }} </strong> will be permanently deleted. A backup will be automatically downloaded to your device before deletion.
</p>
2015-11-18 13:50:48 +03:00
{{ / if }}
</div>
<div class="modal-footer">
2019-01-02 12:58:55 +03:00
<button {{ action "closeModal" }} class="gh-btn" data-test-button="cancel-delete-user">
<span>Cancel</span>
</button>
2020-02-07 12:46:05 +03:00
<GhTaskButton @buttonText="Download backup & delete user"
2020-01-16 18:14:03 +03:00
@successText="Deleted"
@task= {{ this .deleteUser }}
@class="gh-btn gh-btn-red gh-btn-icon"
data-test-button="confirm-delete-user" />
2017-02-16 22:50:05 +03:00
</div>