diff options
author | Sandeepa Singh <sandeepa.singh@ibm.com> | 2021-05-24 11:21:09 +0300 |
---|---|---|
committer | Derick Montague <derick.montague@ibm.com> | 2021-07-21 15:56:02 +0300 |
commit | 06d53863a83c003e7248f5cfc8362765882d19bb (patch) | |
tree | 2603dc1b60ac4b59c7ec6a16e43c5ec3b50e2a38 /src/components/Global | |
parent | f65cc7b29a90b71a5e6c888ea180150e232be79e (diff) | |
download | webui-vue-06d53863a83c003e7248f5cfc8362765882d19bb.tar.xz |
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
Diffstat (limited to 'src/components/Global')
-rw-r--r-- | src/components/Global/TableRowAction.vue | 16 |
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() { |