+
+
+ {{ $t('actions.cancel') }}
+
+ {{ $t('settings.deleteUserAccount.name') }}
+
+
+
+
+
+
+
+
diff --git a/webapp/locales/de.json b/webapp/locales/de.json
index d53e32a2b..925252437 100644
--- a/webapp/locales/de.json
+++ b/webapp/locales/de.json
@@ -373,6 +373,11 @@
"questions": "Bei Fragen oder Problemen erreichst Du uns per E-Mail an",
"title": "Human Connection befindet sich in der Wartung"
},
+ "modals": {
+ "deleteUser": {
+ "created": "Erstellt"
+ }
+ },
"moderation": {
"name": "Moderation",
"reports": {
@@ -632,8 +637,12 @@
"deleteUserAccount": {
"accountDescription": "Sei dir bewusst, dass deine Beiträge und Kommentare für unsere Community wichtig sind. Wenn du sie trotzdem löschen möchtest, musst du sie unten markieren.",
"accountWarning": "Dein Konto, deine Beiträge oder Kommentare kannst du nach dem Löschen WEDER VERWALTEN NOCH WIEDERHERSTELLEN!",
+ "accountWarningAdmin": "Das Konto, die Beiträge oder Kommentare können nach dem Löschen WEDER VERWALTEN NOCH WIEDERHERGESTELLT WERDEN!",
+ "accountWarningIsAdmin": "Achtung! Du löschst jetzt ein Benutzerkonto!",
"commentedCount": "Meine {count} Kommentare löschen",
+ "confirmDeleting": "Benutzerkonto jetzt löschen",
"contributionsCount": "Meine {count} Beiträge löschen",
+ "infoAdmin": "Alle Beiträge und Kommentare des Users werden zusätzlich gelöscht!",
"name": "Benutzerkonto löschen",
"pleaseConfirm": "Zerstörerische Aktion! Gib „{confirm}“ ein, um zu bestätigen.",
"success": "Konto erfolgreich gelöscht!"
diff --git a/webapp/locales/en.json b/webapp/locales/en.json
index e91f5c37a..984deeeb7 100644
--- a/webapp/locales/en.json
+++ b/webapp/locales/en.json
@@ -373,6 +373,11 @@
"questions": "Any Questions or concerns, send an e-mail to",
"title": "Human Connection is under maintenance"
},
+ "modals": {
+ "deleteUser": {
+ "created": "Created"
+ }
+ },
"moderation": {
"name": "Moderation",
"reports": {
@@ -632,8 +637,12 @@
"deleteUserAccount": {
"accountDescription": "Be aware that your Posts and Comments are important to our community. If you still choose to delete them, you have to mark them below.",
"accountWarning": "You CAN'T MANAGE and CAN'T RECOVER your Account, Posts, or Comments after deleting your account!",
+ "accountWarningAdmin": "The account, contributions or comments can NOT BE ADMINISTERED OR RESTORED after deletion!",
+ "accountWarningIsAdmin": "Heads up! You are about to delete a user account!",
"commentedCount": "Delete my {count} comments",
+ "confirmDeleting": "Delete user account now",
"contributionsCount": "Delete my {count} posts",
+ "infoAdmin": "All contributions and comments of the user are additionally deleted!",
"name": "Delete user account",
"pleaseConfirm": "Destructive action! Type “{confirm}” to confirm.",
"success": "Account successfully deleted!"
diff --git a/webapp/pages/profile/_id/_slug.vue b/webapp/pages/profile/_id/_slug.vue
index 1a43da14b..c8c9e9886 100644
--- a/webapp/pages/profile/_id/_slug.vue
+++ b/webapp/pages/profile/_id/_slug.vue
@@ -23,6 +23,7 @@
@unmute="unmuteUser"
@block="blockUser"
@unblock="unblockUser"
+ @delete="deleteUser"
/>
@@ -385,6 +386,14 @@ export default {
this.$apollo.queries.User.refetch()
}
},
+ async deleteUser(userdata) {
+ this.$store.commit('modal/SET_OPEN', {
+ name: 'delete',
+ data: {
+ userdata: userdata,
+ },
+ })
+ },
pinPost(post) {
this.$apollo
.mutate({