diff options
author | Yoshie Muranaka <yoshiemuranaka@gmail.com> | 2021-01-05 01:08:04 +0300 |
---|---|---|
committer | Derick Montague <derick.montague@ibm.com> | 2021-01-20 20:55:12 +0300 |
commit | a87f3e75a6a66937fd27047c0065a9aa9846abee (patch) | |
tree | 5481832bbfa223dab4cf8f3a877427e2e7906982 /src/components/Global | |
parent | b31a448dc9d6d153b33e2a8616f1626d376a6ee0 (diff) | |
download | webui-vue-a87f3e75a6a66937fd27047c0065a9aa9846abee.tar.xz |
Add ability to downlad dump
- Adds download row action in bmc dumps table
- Adds new rowAction download type to support <a> tag with
download attribute
Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com>
Change-Id: I97fd70e6a6783d4336ca1a8486cf1cd3062ebb5d
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 94ef6ce4..5b2c4a99 100644 --- a/src/components/Global/TableRowAction.vue +++ b/src/components/Global/TableRowAction.vue @@ -12,6 +12,18 @@ {{ $t('global.action.export') }} </slot> </b-link> + <b-link + v-else-if="value === 'download'" + class="align-bottom btn-icon-only py-0 btn-link" + :download="exportName" + :href="downloadLocation" + :title="title" + > + <slot name="icon" /> + <span class="sr-only"> + {{ $t('global.action.download') }} + </span> + </b-link> <b-button v-else variant="link" @@ -54,6 +66,10 @@ export default { type: String, default: 'export', }, + downloadLocation: { + type: String, + default: '', + }, }, computed: { dataForExport() { |