summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSneha Patel <Snehaben.Patel@ibm.com>2021-06-05 00:06:08 +0300
committerDerick Montague <derick.montague@ibm.com>2021-06-09 15:18:30 +0300
commit3f9cfa2c2491cc060ea57787660e918e4a7ee7e5 (patch)
tree148abb67134fd01953edd8c8c3dc9bfb05a679b9
parentdc6b3cde1a064e55560798a94deaba14247bcae4 (diff)
downloadwebui-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.vue7
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>