-
-
Notifications
You must be signed in to change notification settings - Fork 10.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change user deletion warning to be more explicit.
Issue #4583 - If a user has posts, show the count in the deletion warning.
- Loading branch information
Showing
2 changed files
with
29 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,12 @@ | ||
{{#gh-modal-dialog action="closeModal" showClose=true type="action" style="wide,centered" animation="fade" | ||
title="Are you sure you want to delete this user?" confirm=confirm}} | ||
|
||
<p>All posts and associated data will also be deleted. There is no way to recover this data. | ||
</p> | ||
{{#unless userPostCount.isPending}} | ||
{{#if userPostCount.count}} | ||
<strong>WARNING:</strong> <span class="red">This user is the author of {{userPostCount.count}} {{userPostCount.inflection}}.</span> All posts and user data will be deleted. There is no way to recover this. | ||
{{else}} | ||
<strong>WARNING:</strong> All user data will be deleted. There is no way to recover this. | ||
{{/if}} | ||
{{/unless}} | ||
|
||
{{/gh-modal-dialog}} | ||
{{/gh-modal-dialog}} |