summaryrefslogtreecommitdiff
path: root/src/components/Global
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/Global')
-rw-r--r--src/components/Global/TableRowAction.vue12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/components/Global/TableRowAction.vue b/src/components/Global/TableRowAction.vue
index 99fa58b3..549f1b52 100644
--- a/src/components/Global/TableRowAction.vue
+++ b/src/components/Global/TableRowAction.vue
@@ -13,7 +13,9 @@
<span v-if="btnIconOnly" class="sr-only">{{ title }}</span>
</b-link>
<b-link
- v-else-if="value === 'download' && downloadInNewTab"
+ v-else-if="
+ value === 'download' && downloadInNewTab && downloadLocation !== ''
+ "
class="align-bottom btn-icon-only py-0 btn-link"
target="_blank"
:href="downloadLocation"
@@ -25,7 +27,7 @@
</span>
</b-link>
<b-link
- v-else-if="value === 'download'"
+ v-else-if="value === 'download' && downloadLocation !== ''"
class="align-bottom btn-icon-only py-0 btn-link"
:download="exportName"
:href="downloadLocation"
@@ -37,7 +39,7 @@
</span>
</b-link>
<b-button
- v-else
+ v-else-if="showButton"
variant="link"
:class="{ 'btn-icon-only': btnIconOnly }"
:disabled="!enabled"
@@ -90,6 +92,10 @@ export default {
type: Boolean,
default: false,
},
+ showButton: {
+ type: Boolean,
+ default: true,
+ },
},
computed: {
dataForExport() {