From 5a1de437b630821618a00b790fbc791734bcfbc5 Mon Sep 17 00:00:00 2001 From: jedi Date: Sat, 13 Jan 2024 01:32:59 +0100 Subject: [PATCH] add button to copy shipping contact email to clipboard --- web/src/components/inputs/ClipboardButton.vue | 18 ++++++++++++++++++ web/src/main.js | 4 ++-- web/src/views/Ticket.vue | 11 ++++++++++- 3 files changed, 30 insertions(+), 3 deletions(-) create mode 100644 web/src/components/inputs/ClipboardButton.vue diff --git a/web/src/components/inputs/ClipboardButton.vue b/web/src/components/inputs/ClipboardButton.vue new file mode 100644 index 0000000..0f164e6 --- /dev/null +++ b/web/src/components/inputs/ClipboardButton.vue @@ -0,0 +1,18 @@ + + + diff --git a/web/src/main.js b/web/src/main.js index 9c59ae2..a63572e 100644 --- a/web/src/main.js +++ b/web/src/main.js @@ -36,7 +36,7 @@ import { faUser, faComments, faArchive, - faMinus, faHourglass, faExclamation, + faMinus, faHourglass, faExclamation, faClipboard, } from '@fortawesome/free-solid-svg-icons'; import {FontAwesomeIcon} from '@fortawesome/vue-fontawesome'; @@ -44,7 +44,7 @@ import vueDebounce from 'vue-debounce'; library.add(faPlus, faCheckCircle, faEdit, faTrash, faCat, faSyncAlt, faSort, faSortUp, faSortDown, faTh, faList, faWindowClose, faCamera, faStop, faPen, faCheck, faTimes, faSave, faEye, faComment, faUser, faComments, faEnvelope, - faArchive, faMinus, faExclamation, faHourglass); + faArchive, faMinus, faExclamation, faHourglass, faClipboard); Vue.component('font-awesome-icon', FontAwesomeIcon); sync(store, router); diff --git a/web/src/views/Ticket.vue b/web/src/views/Ticket.vue index e097f5c..f772370 100644 --- a/web/src/views/Ticket.vue +++ b/web/src/views/Ticket.vue @@ -16,6 +16,10 @@ Mark as returned + + + Copy DHL contact to clipboard +