From 06d53863a83c003e7248f5cfc8362765882d19bb Mon Sep 17 00:00:00 2001
From: Sandeepa Singh <sandeepa.singh@ibm.com>
Date: Mon, 24 May 2021 13:51:09 +0530
Subject: 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
---
 src/components/Global/TableRowAction.vue | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

(limited to 'src/components/Global/TableRowAction.vue')

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
@@ -12,6 +12,18 @@
       </slot>
       <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"
@@ -74,6 +86,10 @@ export default {
       type: Boolean,
       default: true,
     },
+    downloadInNewTab: {
+      type: Boolean,
+      default: false,
+    },
   },
   computed: {
     dataForExport() {
-- 
cgit v1.2.3

