0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

Updated staff delete modal copy

This commit is contained in:
Peter Zimon 2020-02-07 10:46:05 +01:00 committed by Daniel Lockyer
parent fc46a97b18
commit 4ce559a169

View file

@ -4,20 +4,17 @@
<a class="close" href="" title="Close" {{action "closeModal"}}>{{svg-jar "close"}}<span class="hidden">Close</span></a>
<div class="modal-body">
<p><strong>WARNING:</strong> You are about to delete the user '<strong>{{this.user.name}}</strong>'. There is no way to recover this.</p>
{{#if this.user.count.posts}}
<ul>
<li>The user will not have access to this site anymore</li>
<li><strong data-test-text="user-post-count">{{pluralize this.user.count.posts 'post'}}</strong> by this user will be deleted</li>
<li>All other user data will be deleted</li>
<li>A backup of the site will be automatically downloaded to your computer before deletion</li>
</ul>
<p>
<strong>{{this.user.name}}</strong> and their <strong data-test-text="user-post-count">{{pluralize this.user.count.posts 'post'}}</strong> will be permanently deleted. If you dont want to lose these posts, you should assign them to a different author.
</p>
<p>
A backup will be automatically downloaded to your device before deletion.
</p>
{{else}}
<ul>
<li>The user will not have access to this site anymore</li>
<li>All user data will be deleted</li>
<li>A backup of the site will be automatically downloaded to your computer before deletion</li>
</ul>
<p>
<strong>{{this.user.name}}</strong> will be permanently deleted. A backup will be automatically downloaded to your device before deletion.
</p>
{{/if}}
</div>
@ -25,7 +22,7 @@
<button {{action "closeModal"}} class="gh-btn" data-test-button="cancel-delete-user">
<span>Cancel</span>
</button>
<GhTaskButton @buttonText={{if this.user.count.posts "Delete user and their posts" "Delete user"}}
<GhTaskButton @buttonText="Download backup & delete user"
@successText="Deleted"
@task={{this.deleteUser}}
@class="gh-btn gh-btn-red gh-btn-icon"