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:
parent
fc46a97b18
commit
4ce559a169
1 changed files with 10 additions and 13 deletions
|
@ -4,20 +4,17 @@
|
||||||
<a class="close" href="" title="Close" {{action "closeModal"}}>{{svg-jar "close"}}<span class="hidden">Close</span></a>
|
<a class="close" href="" title="Close" {{action "closeModal"}}>{{svg-jar "close"}}<span class="hidden">Close</span></a>
|
||||||
|
|
||||||
<div class="modal-body">
|
<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}}
|
{{#if this.user.count.posts}}
|
||||||
<ul>
|
<p>
|
||||||
<li>The user will not have access to this site anymore</li>
|
<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 don’t want to lose these posts, you should assign them to a different author.
|
||||||
<li><strong data-test-text="user-post-count">{{pluralize this.user.count.posts 'post'}}</strong> by this user will be deleted</li>
|
</p>
|
||||||
<li>All other user data will be deleted</li>
|
<p>
|
||||||
<li>A backup of the site will be automatically downloaded to your computer before deletion</li>
|
A backup will be automatically downloaded to your device before deletion.
|
||||||
</ul>
|
</p>
|
||||||
{{else}}
|
{{else}}
|
||||||
<ul>
|
<p>
|
||||||
<li>The user will not have access to this site anymore</li>
|
<strong>{{this.user.name}}</strong> will be permanently deleted. A backup will be automatically downloaded to your device before deletion.
|
||||||
<li>All user data will be deleted</li>
|
</p>
|
||||||
<li>A backup of the site will be automatically downloaded to your computer before deletion</li>
|
|
||||||
</ul>
|
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -25,7 +22,7 @@
|
||||||
<button {{action "closeModal"}} class="gh-btn" data-test-button="cancel-delete-user">
|
<button {{action "closeModal"}} class="gh-btn" data-test-button="cancel-delete-user">
|
||||||
<span>Cancel</span>
|
<span>Cancel</span>
|
||||||
</button>
|
</button>
|
||||||
<GhTaskButton @buttonText={{if this.user.count.posts "Delete user and their posts" "Delete user"}}
|
<GhTaskButton @buttonText="Download backup & delete user"
|
||||||
@successText="Deleted"
|
@successText="Deleted"
|
||||||
@task={{this.deleteUser}}
|
@task={{this.deleteUser}}
|
||||||
@class="gh-btn gh-btn-red gh-btn-icon"
|
@class="gh-btn gh-btn-red gh-btn-icon"
|
||||||
|
|
Loading…
Add table
Reference in a new issue