diff --git a/webapp/components/ContentMenu.vue b/webapp/components/ContentMenu.vue
index 5de2820da..29473d6b2 100644
--- a/webapp/components/ContentMenu.vue
+++ b/webapp/components/ContentMenu.vue
@@ -77,6 +77,13 @@ export default {
}).href,
icon: 'edit'
})
+ routes.push({
+ name: this.$t(`post.delete.title`),
+ callback: () => {
+ this.openModal('delete')
+ },
+ icon: 'trash'
+ })
}
if (this.isOwner && this.resourceType === 'comment') {
routes.push({
diff --git a/webapp/components/Modal.vue b/webapp/components/Modal.vue
index 0507e5439..2ea482190 100644
--- a/webapp/components/Modal.vue
+++ b/webapp/components/Modal.vue
@@ -14,19 +14,28 @@
:name="name"
@close="close"
/>
+
+
+
diff --git a/webapp/locales/en.json b/webapp/locales/en.json
index b0f06952b..e61d969d9 100644
--- a/webapp/locales/en.json
+++ b/webapp/locales/en.json
@@ -111,6 +111,14 @@
},
"takeAction": {
"name": "Take action"
+ },
+ "delete": {
+ "submit": "Delete",
+ "cancel": "Cancel",
+ "success": "Post deleted successfully",
+ "title": "Delete Post",
+ "type": "Contribution",
+ "message": "Do you really want to delete the post \"{name}\"?"
}
},
"quotes": {