summaryrefslogtreecommitdiff
path: root/src/components/Global/TableRowAction.vue
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/Global/TableRowAction.vue')
-rw-r--r--src/components/Global/TableRowAction.vue16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/components/Global/TableRowAction.vue b/src/components/Global/TableRowAction.vue
index 94ef6ce4..5b2c4a99 100644
--- a/src/components/Global/TableRowAction.vue
+++ b/src/components/Global/TableRowAction.vue
@@ -12,6 +12,18 @@
{{ $t('global.action.export') }}
</slot>
</b-link>
+ <b-link
+ v-else-if="value === 'download'"
+ class="align-bottom btn-icon-only py-0 btn-link"
+ :download="exportName"
+ :href="downloadLocation"
+ :title="title"
+ >
+ <slot name="icon" />
+ <span class="sr-only">
+ {{ $t('global.action.download') }}
+ </span>
+ </b-link>
<b-button
v-else
variant="link"
@@ -54,6 +66,10 @@ export default {
type: String,
default: 'export',
},
+ downloadLocation: {
+ type: String,
+ default: '',
+ },
},
computed: {
dataForExport() {