diff options
author | Sneha Patel <Snehaben.Patel@ibm.com> | 2021-06-05 00:06:08 +0300 |
---|---|---|
committer | Derick Montague <derick.montague@ibm.com> | 2021-06-09 15:18:30 +0300 |
commit | 3f9cfa2c2491cc060ea57787660e918e4a7ee7e5 (patch) | |
tree | 148abb67134fd01953edd8c8c3dc9bfb05a679b9 | |
parent | dc6b3cde1a064e55560798a94deaba14247bcae4 (diff) | |
download | webui-vue-3f9cfa2c2491cc060ea57787660e918e4a7ee7e5.tar.xz |
Dump download file name
Change the pattern of the download file name
Signed-off-by: Sneha Patel <Snehaben.Patel@ibm.com>
Change-Id: If1e7cf609c4a278e3fb7b98d19d7071ddbb534fd
-rw-r--r-- | src/views/Health/Dumps/Dumps.vue | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/views/Health/Dumps/Dumps.vue b/src/views/Health/Dumps/Dumps.vue index 8181c5ba..4538b305 100644 --- a/src/views/Health/Dumps/Dumps.vue +++ b/src/views/Health/Dumps/Dumps.vue @@ -92,7 +92,7 @@ :value="action.value" :title="action.title" :download-location="row.item.data" - :export-name="`${row.item.dumpType} ${row.item.id}`" + :export-name="exportFileName(row)" @click-table-action="onTableRowAction($event, row.item)" > <template #icon> @@ -327,6 +327,11 @@ export default { }); } }, + exportFileName(row) { + let filename = row.item.dumpType + '_' + row.item.id + '.tar.gz'; + filename = filename.replace(RegExp(' ', 'g'), '_'); + return filename; + }, }, }; </script> |