Add POST code logs page
This page will be included in the Health section of the primary
navigation. The user will be able to export and download POST code
logs.
Signed-off-by: Sandeepa Singh <sandeepa.singh@ibm.com>
Change-Id: I26cf1e01bfdfcf298f24f2c7dd9633ab7d31f1b5
diff --git a/src/components/Global/TableRowAction.vue b/src/components/Global/TableRowAction.vue
index 9d853bc..99fa58b 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 @@
type: Boolean,
default: true,
},
+ downloadInNewTab: {
+ type: Boolean,
+ default: false,
+ },
},
computed: {
dataForExport() {