diff --git a/js/src/i18n/en_US.json b/js/src/i18n/en_US.json index 6d73c86e2..8a58bda0e 100644 --- a/js/src/i18n/en_US.json +++ b/js/src/i18n/en_US.json @@ -957,5 +957,8 @@ "The group's banner was changed.": "The group's banner was changed.", "The group's short description was changed.": "The group's short description was changed.", "No information": "No information", - "@{username}'s follow request was accepted": "@{username}'s follow request was accepted" + "@{username}'s follow request was accepted": "@{username}'s follow request was accepted", + "Delete this discussion": "Delete this discussion", + "Are you sure you want to delete this entire discussion?": "Are you sure you want to delete this entire discussion?", + "Delete discussion": "Delete discussion" } diff --git a/js/src/i18n/fr_FR.json b/js/src/i18n/fr_FR.json index efbe19e2d..d52a037c8 100644 --- a/js/src/i18n/fr_FR.json +++ b/js/src/i18n/fr_FR.json @@ -1051,5 +1051,8 @@ "{username} was invited to {group}": "{username} a été invité à {group}", "© The OpenStreetMap Contributors": "© Les Contributeur⋅ices OpenStreetMap", "No information": "Non renseigné", - "@{username}'s follow request was accepted": "@{username}'s follow request was accepted" + "@{username}'s follow request was accepted": "@{username}'s follow request was accepted", + "Delete this discussion": "Supprimer cette discussion", + "Are you sure you want to delete this entire discussion?": "Êtes-vous certain⋅e de vouloir supprimer l'entièreté de cette discussion ?", + "Delete discussion": "Supprimer la discussion" } diff --git a/js/src/views/Discussions/Discussion.vue b/js/src/views/Discussions/Discussion.vue index 3524265dd..56618e6c2 100644 --- a/js/src/views/Discussions/Discussion.vue +++ b/js/src/views/Discussions/Discussion.vue @@ -79,7 +79,7 @@ icon-right="close" /> this.deleteConversation(), + }); + } + async deleteConversation(): Promise { await this.$apollo.mutate({ mutation: DELETE_DISCUSSION,