summaryrefslogtreecommitdiffstats
path: root/webapp/src/components/DataTable.vue
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/src/components/DataTable.vue')
-rw-r--r--webapp/src/components/DataTable.vue6
1 files changed, 3 insertions, 3 deletions
diff --git a/webapp/src/components/DataTable.vue b/webapp/src/components/DataTable.vue
index b3da534..36b44f3 100644
--- a/webapp/src/components/DataTable.vue
+++ b/webapp/src/components/DataTable.vue
@@ -176,7 +176,6 @@
v-model="copyDialog"
scrollable
:max-width="300"
- :fullscreen="$vuetify.breakpoint.smAndDown"
lazy
>
<v-card class="non-selectable">
@@ -456,14 +455,15 @@ export default {
},
copyToClipboard () {
let result = ''
- const keys = this.headersWithText.filter(h => h.includeInCopy).map(x => x.key)
+ const keys = this.headersWithText.filter(h => h.includeInCopy).map(x => x.copyKey || x.key)
if (this.copyFormat === 0) {
const topIndex = keys.length - 1
this.filteredRows.forEach(row => {
let rowString = ''
for (let i in keys) {
let value = row.data[keys[i]]
- if (typeof value === 'string' && value.indexOf(',') !== -1) value = '"' + value + '"'
+ if (typeof value === 'string' && (value.indexOf(',') !== -1 || value.indexOf('"') !== -1)) value = JSON.stringify(value)
+ else if (typeof value === 'object') value = JSON.stringify(JSON.stringify(value))
if (value) rowString += value
if (i < topIndex) rowString += ','
}