diff --git a/ghost/admin/app/components/modal-delete-user.hbs b/ghost/admin/app/components/modal-delete-user.hbs index 536cd2aa2f..07e3f8f403 100644 --- a/ghost/admin/app/components/modal-delete-user.hbs +++ b/ghost/admin/app/components/modal-delete-user.hbs @@ -6,7 +6,11 @@
- {{this.user.name}} and their {{gh-pluralize this.user.count.posts 'post'}} will be permanently deleted. + {{this.user.name}} will be permanently deleted and their {{gh-pluralize this.user.count.posts 'post'}} will be automatically assigned to {{this.ownerUser.name}}. +
+ ++ To make these easy to find in the future, each post will be given an internal tag of #{{this.user.slug}}
{{else}}diff --git a/ghost/admin/app/components/modal-delete-user.js b/ghost/admin/app/components/modal-delete-user.js index 6029fbffb4..4efbfd3eea 100644 --- a/ghost/admin/app/components/modal-delete-user.js +++ b/ghost/admin/app/components/modal-delete-user.js @@ -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();