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 ca06588aa..186b31d41 100644 --- a/webapp/locales/en.json +++ b/webapp/locales/en.json @@ -135,6 +135,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}\"?" + }, "comment": { "submit": "Comment", "submitted": "Comment Submitted" diff --git a/webapp/locales/es.json b/webapp/locales/es.json index ba46f9ec1..5beab2eef 100644 --- a/webapp/locales/es.json +++ b/webapp/locales/es.json @@ -88,6 +88,14 @@ }, "takeAction": { "name": "Tomar acción" + }, + "delete": { + "submit": "Borrar", + "cancel": "Cancelar", + "success": "Mensaje borrado satisfactoriamente", + "title": "Borrar mensaje", + "type": "Mensaje", + "message": "¿Realmente quieres borrar el mensaje \"{name}\"?" } }, "quotes": {