diff --git a/ayanova/src/api/translation.js b/ayanova/src/api/translation.js index 28637abd..4c579421 100644 --- a/ayanova/src/api/translation.js +++ b/ayanova/src/api/translation.js @@ -174,7 +174,8 @@ export default { "AttachFile", "AttachmentNotes", "Upload", - "AttachmentFileName" + "AttachmentFileName", + "FileAttachment" ], //////////////////////////////////////////////////////// diff --git a/ayanova/src/components/attachment-control.vue b/ayanova/src/components/attachment-control.vue index e83e5456..e9ecb69b 100644 --- a/ayanova/src/components/attachment-control.vue +++ b/ayanova/src/components/attachment-control.vue @@ -31,7 +31,7 @@ - + fa-edit @@ -108,6 +108,8 @@ export default { tab: null, uploadFiles: [], editMenu: false, + menuX: 10, + menuY: 10, editNotes: null, editName: null, editId: null @@ -218,7 +220,21 @@ export default { }); } this.displayList = ret; + }, + openEditMenu(item, e) { + e.preventDefault(); + this.editMenu = false; + this.editName = item.name; + this.editNotes = item.notes; + this.editId = item.id; + + this.menuX = e.clientX; + this.menuY = e.clientY; + this.$nextTick(() => { + this.editMenu = true; + }); } + //----- } };