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 9d853bc7..99fa58b3 100644
--- a/src/components/Global/TableRowAction.vue
+++ b/src/components/Global/TableRowAction.vue
@@ -13,6 +13,18 @@
<span v-if="btnIconOnly" class="sr-only">{{ title }}</span>
</b-link>
<b-link
+ v-else-if="value === 'download' && downloadInNewTab"
+ class="align-bottom btn-icon-only py-0 btn-link"
+ target="_blank"
+ :href="downloadLocation"
+ :title="title"
+ >
+ <slot name="icon" />
+ <span class="sr-only">
+ {{ $t('global.action.download') }}
+ </span>
+ </b-link>
+ <b-link
v-else-if="value === 'download'"
class="align-bottom btn-icon-only py-0 btn-link"
:download="exportName"
@@ -74,6 +86,10 @@ export default {
type: Boolean,
default: true,
},
+ downloadInNewTab: {
+ type: Boolean,
+ default: false,
+ },
},
computed: {
dataForExport() {