Updated copy for user deletion modal
refs https://github.com/TryGhost/Ghost/issues/15008 - When the user is removed the new flow adds a special tag and reassignes all the user-owned posts to the owner user. Updated copy to inform about this behavior clearly
This commit is contained in:
parent
abc11a8028
commit
c7de8d3358
@ -6,7 +6,11 @@
|
||||
<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.
|
||||
<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>
|
||||
To make these easy to find in the future, each post will be given an internal tag of <strong>#{{this.user.slug}}</strong>
|
||||
</p>
|
||||
{{else}}
|
||||
<p>
|
||||
|
@ -1,8 +1,11 @@
|
||||
import ModalComponent from 'ghost-admin/components/modal-base';
|
||||
import {alias} from '@ember/object/computed';
|
||||
import {inject as service} from '@ember/service';
|
||||
import {task} from 'ember-concurrency';
|
||||
|
||||
export default ModalComponent.extend({
|
||||
store: service(),
|
||||
|
||||
// Allowed actions
|
||||
confirm: () => {},
|
||||
|
||||
@ -14,6 +17,10 @@ export default ModalComponent.extend({
|
||||
}
|
||||
},
|
||||
|
||||
get ownerUser() {
|
||||
return this.store.peekAll('user').findBy('isOwnerOnly', true);
|
||||
},
|
||||
|
||||
deleteUser: task(function* () {
|
||||
try {
|
||||
yield this.confirm();
|
||||
|
Loading…
Reference in New Issue
Block a user