blob: 9bac163cf43b6996242c8d486175901a5d092086 [file] [log] [blame]
Yoshie Muranaka6f102342020-05-05 09:45:39 -07001<template>
2 <b-container fluid="xl">
3 <page-title />
SurenNeware787635a2020-11-24 22:42:42 +05304 <b-row class="align-items-start">
5 <b-col sm="8" xl="6" class="d-sm-flex align-items-end">
Yoshie Muranaka193c22a2020-06-30 20:54:10 -07006 <search
7 :placeholder="$t('pageEventLogs.table.searchLogs')"
Sukanya Pandeyedb8a772020-10-29 11:33:42 +05308 @change-search="onChangeSearchInput"
9 @clear-search="onClearSearchInput"
Yoshie Muranaka193c22a2020-06-30 20:54:10 -070010 />
SurenNeware787635a2020-11-24 22:42:42 +053011 <div class="ml-sm-4">
12 <table-cell-count
13 :filtered-items-count="filteredRows"
14 :total-number-of-cells="allLogs.length"
15 ></table-cell-count>
16 </div>
Yoshie Muranaka193c22a2020-06-30 20:54:10 -070017 </b-col>
SurenNeware787635a2020-11-24 22:42:42 +053018 <b-col sm="8" md="7" xl="6">
Yoshie Muranaka68bbba22020-05-18 09:49:37 -070019 <table-date-filter @change="onChangeDateTimeFilter" />
20 </b-col>
21 </b-row>
Yoshie Muranaka6f102342020-05-05 09:45:39 -070022 <b-row>
23 <b-col class="text-right">
Sukanya Pandeyedb8a772020-10-29 11:33:42 +053024 <table-filter :filters="tableFilters" @filter-change="onFilterChange" />
Yoshie Muranaka6f102342020-05-05 09:45:39 -070025 </b-col>
26 </b-row>
27 <b-row>
28 <b-col>
Yoshie Muranakabe3af332020-05-11 08:23:04 -070029 <table-toolbar
30 ref="toolbar"
31 :selected-items-count="selectedRows.length"
32 :actions="batchActions"
Sukanya Pandeyedb8a772020-10-29 11:33:42 +053033 @clear-selected="clearSelectedRows($refs.table)"
34 @batch-action="onBatchAction"
Yoshie Muranakabe3af332020-05-11 08:23:04 -070035 >
Derick Montague602e98a2020-10-21 16:20:00 -050036 <template #export>
Yoshie Muranakabe3af332020-05-11 08:23:04 -070037 <table-toolbar-export
38 :data="batchExportData"
SurenNeware96ebb0d2020-09-08 17:42:39 +053039 :file-name="exportFileNameByDate()"
Yoshie Muranakabe3af332020-05-11 08:23:04 -070040 />
41 </template>
42 </table-toolbar>
Yoshie Muranaka6f102342020-05-05 09:45:39 -070043 <b-table
Yoshie Muranakaf9832b02020-05-12 12:04:46 -070044 id="table-event-logs"
Yoshie Muranakabe3af332020-05-11 08:23:04 -070045 ref="table"
SurenNeware5e25e282020-07-08 15:57:23 +053046 responsive="md"
Yoshie Muranakabe3af332020-05-11 08:23:04 -070047 selectable
48 no-select-on-click
Yoshie Muranaka6f102342020-05-05 09:45:39 -070049 sort-icon-left
Sukanya Pandeyfde429e2020-09-14 20:48:39 +053050 hover
Yoshie Muranaka6f102342020-05-05 09:45:39 -070051 no-sort-reset
52 sort-desc
53 show-empty
Derick Montague6b140ba2020-09-03 16:26:33 -050054 sort-by="id"
Yoshie Muranakabe3af332020-05-11 08:23:04 -070055 :fields="fields"
56 :items="filteredLogs"
Yoshie Muranaka6f102342020-05-05 09:45:39 -070057 :sort-compare="onSortCompare"
SurenNeware307382e2020-07-27 20:45:14 +053058 :empty-text="$t('global.table.emptyMessage')"
SurenNeware156a0e62020-08-28 19:20:03 +053059 :empty-filtered-text="$t('global.table.emptySearchMessage')"
Yoshie Muranakaf9832b02020-05-12 12:04:46 -070060 :per-page="perPage"
61 :current-page="currentPage"
Yoshie Muranaka193c22a2020-06-30 20:54:10 -070062 :filter="searchFilter"
Sukanya Pandey99010962020-07-27 21:44:47 +053063 @filtered="onFiltered"
Yoshie Muranakabe3af332020-05-11 08:23:04 -070064 @row-selected="onRowSelected($event, filteredLogs.length)"
Yoshie Muranaka6f102342020-05-05 09:45:39 -070065 >
Yoshie Muranakabe3af332020-05-11 08:23:04 -070066 <!-- Checkbox column -->
Derick Montague602e98a2020-10-21 16:20:00 -050067 <template #head(checkbox)>
Yoshie Muranakabe3af332020-05-11 08:23:04 -070068 <b-form-checkbox
69 v-model="tableHeaderCheckboxModel"
Yoshie Muranakaed06dc12020-06-16 12:12:27 -070070 data-test-id="eventLogs-checkbox-selectAll"
Yoshie Muranakabe3af332020-05-11 08:23:04 -070071 :indeterminate="tableHeaderCheckboxIndeterminate"
72 @change="onChangeHeaderCheckbox($refs.table)"
Dixsie Wolmersc42ad712020-11-19 17:29:24 -060073 >
74 <span class="sr-only">{{ $t('global.table.selectAll') }}</span>
75 </b-form-checkbox>
Yoshie Muranakabe3af332020-05-11 08:23:04 -070076 </template>
Derick Montague602e98a2020-10-21 16:20:00 -050077 <template #cell(checkbox)="row">
Yoshie Muranakabe3af332020-05-11 08:23:04 -070078 <b-form-checkbox
79 v-model="row.rowSelected"
Yoshie Muranakaed06dc12020-06-16 12:12:27 -070080 :data-test-id="`eventLogs-checkbox-selectRow-${row.index}`"
Yoshie Muranakabe3af332020-05-11 08:23:04 -070081 @change="toggleSelectRow($refs.table, row.index)"
Dixsie Wolmersc42ad712020-11-19 17:29:24 -060082 >
83 <span class="sr-only">{{ $t('global.table.selectItem') }}</span>
84 </b-form-checkbox>
Yoshie Muranakabe3af332020-05-11 08:23:04 -070085 </template>
86
87 <!-- Severity column -->
Derick Montague602e98a2020-10-21 16:20:00 -050088 <template #cell(severity)="{ value }">
Mateusz Gapskib1f12532020-07-24 08:15:23 +020089 <status-icon v-if="value" :status="statusIcon(value)" />
Yoshie Muranaka6f102342020-05-05 09:45:39 -070090 {{ value }}
91 </template>
Yoshie Muranakabe3af332020-05-11 08:23:04 -070092
93 <!-- Date column -->
Derick Montague602e98a2020-10-21 16:20:00 -050094 <template #cell(date)="{ value }">
Dixsie Wolmers949cdd52020-08-24 21:36:37 -050095 <p class="mb-0">{{ value | formatDate }}</p>
96 <p class="mb-0">{{ value | formatTime }}</p>
Yoshie Muranaka6f102342020-05-05 09:45:39 -070097 </template>
Yoshie Muranakabe3af332020-05-11 08:23:04 -070098
99 <!-- Actions column -->
Derick Montague602e98a2020-10-21 16:20:00 -0500100 <template #cell(actions)="row">
Yoshie Muranakabe3af332020-05-11 08:23:04 -0700101 <table-row-action
Yoshie Muranakaed06dc12020-06-16 12:12:27 -0700102 v-for="(action, index) in row.item.actions"
Yoshie Muranakabe3af332020-05-11 08:23:04 -0700103 :key="index"
104 :value="action.value"
105 :title="action.title"
Yoshie Muranakaed06dc12020-06-16 12:12:27 -0700106 :row-data="row.item"
SurenNeware96ebb0d2020-09-08 17:42:39 +0530107 :export-name="exportFileNameByDate()"
Yoshie Muranakaed06dc12020-06-16 12:12:27 -0700108 :data-test-id="`eventLogs-button-deleteRow-${row.index}`"
Sukanya Pandeyedb8a772020-10-29 11:33:42 +0530109 @click-table-action="onTableRowAction($event, row.item)"
Yoshie Muranakabe3af332020-05-11 08:23:04 -0700110 >
Derick Montague602e98a2020-10-21 16:20:00 -0500111 <template #icon>
Yoshie Muranakabe3af332020-05-11 08:23:04 -0700112 <icon-export v-if="action.value === 'export'" />
113 <icon-trashcan v-if="action.value === 'delete'" />
114 </template>
115 </table-row-action>
116 </template>
Yoshie Muranaka6f102342020-05-05 09:45:39 -0700117 </b-table>
118 </b-col>
119 </b-row>
Yoshie Muranakaf9832b02020-05-12 12:04:46 -0700120
121 <!-- Table pagination -->
122 <b-row>
SurenNewarea35b5a12020-10-13 17:08:20 +0530123 <b-col sm="6">
Yoshie Muranakaf9832b02020-05-12 12:04:46 -0700124 <b-form-group
125 class="table-pagination-select"
126 :label="$t('global.table.itemsPerPage')"
127 label-for="pagination-items-per-page"
128 >
129 <b-form-select
130 id="pagination-items-per-page"
131 v-model="perPage"
132 :options="itemsPerPageOptions"
133 />
134 </b-form-group>
SurenNewarea35b5a12020-10-13 17:08:20 +0530135 </b-col>
136 <b-col sm="6">
Yoshie Muranakaf9832b02020-05-12 12:04:46 -0700137 <b-pagination
138 v-model="currentPage"
139 first-number
140 last-number
141 :per-page="perPage"
142 :total-rows="getTotalRowCount(filteredLogs.length)"
143 aria-controls="table-event-logs"
144 />
145 </b-col>
146 </b-row>
Yoshie Muranaka6f102342020-05-05 09:45:39 -0700147 </b-container>
148</template>
149
150<script>
Yoshie Muranakabe3af332020-05-11 08:23:04 -0700151import IconTrashcan from '@carbon/icons-vue/es/trash-can/20';
Sukanya Pandeyb2ca0c02020-07-20 23:23:29 +0530152import IconExport from '@carbon/icons-vue/es/document--export/20';
Yoshie Muranakabe3af332020-05-11 08:23:04 -0700153import { omit } from 'lodash';
154
Yoshie Muranaka6f102342020-05-05 09:45:39 -0700155import PageTitle from '@/components/Global/PageTitle';
156import StatusIcon from '@/components/Global/StatusIcon';
Derick Montagued853fba2020-07-16 11:24:10 -0500157import Search from '@/components/Global/Search';
Sukanya Pandey99010962020-07-27 21:44:47 +0530158import TableCellCount from '@/components/Global/TableCellCount';
Yoshie Muranaka68bbba22020-05-18 09:49:37 -0700159import TableDateFilter from '@/components/Global/TableDateFilter';
Yoshie Muranaka6f102342020-05-05 09:45:39 -0700160import TableFilter from '@/components/Global/TableFilter';
Yoshie Muranakabe3af332020-05-11 08:23:04 -0700161import TableRowAction from '@/components/Global/TableRowAction';
162import TableToolbar from '@/components/Global/TableToolbar';
163import TableToolbarExport from '@/components/Global/TableToolbarExport';
Yoshie Muranaka6f102342020-05-05 09:45:39 -0700164
165import LoadingBarMixin from '@/components/Mixins/LoadingBarMixin';
166import TableFilterMixin from '@/components/Mixins/TableFilterMixin';
SurenNewareba91c492020-10-27 14:18:54 +0530167import BVPaginationMixin, {
168 currentPage,
169 perPage,
170 itemsPerPageOptions,
171} from '@/components/Mixins/BVPaginationMixin';
172import BVTableSelectableMixin, {
173 selectedRows,
174 tableHeaderCheckboxModel,
175 tableHeaderCheckboxIndeterminate,
176} from '@/components/Mixins/BVTableSelectableMixin';
Yoshie Muranakabe3af332020-05-11 08:23:04 -0700177import BVToastMixin from '@/components/Mixins/BVToastMixin';
Yoshie Muranaka73e419a2020-06-18 13:08:19 -0700178import TableDataFormatterMixin from '@/components/Mixins/TableDataFormatterMixin';
179import TableSortMixin from '@/components/Mixins/TableSortMixin';
SurenNewareba91c492020-10-27 14:18:54 +0530180import SearchFilterMixin, {
181 searchFilter,
182} from '@/components/Mixins/SearchFilterMixin';
Yoshie Muranaka6f102342020-05-05 09:45:39 -0700183
184export default {
Yoshie Muranakaf9832b02020-05-12 12:04:46 -0700185 components: {
Yoshie Muranakabe3af332020-05-11 08:23:04 -0700186 IconExport,
187 IconTrashcan,
Yoshie Muranakaf9832b02020-05-12 12:04:46 -0700188 PageTitle,
Yoshie Muranaka193c22a2020-06-30 20:54:10 -0700189 Search,
Yoshie Muranakaf9832b02020-05-12 12:04:46 -0700190 StatusIcon,
Sukanya Pandey99010962020-07-27 21:44:47 +0530191 TableCellCount,
Yoshie Muranakabe3af332020-05-11 08:23:04 -0700192 TableFilter,
193 TableRowAction,
194 TableToolbar,
Yoshie Muranaka68bbba22020-05-18 09:49:37 -0700195 TableToolbarExport,
Derick Montague602e98a2020-10-21 16:20:00 -0500196 TableDateFilter,
Yoshie Muranakaf9832b02020-05-12 12:04:46 -0700197 },
Yoshie Muranakabe3af332020-05-11 08:23:04 -0700198 mixins: [
199 BVPaginationMixin,
200 BVTableSelectableMixin,
201 BVToastMixin,
202 LoadingBarMixin,
Yoshie Muranaka73e419a2020-06-18 13:08:19 -0700203 TableFilterMixin,
204 TableDataFormatterMixin,
Dixsie Wolmers9b22b492020-09-07 21:26:06 -0500205 TableSortMixin,
Derick Montague602e98a2020-10-21 16:20:00 -0500206 SearchFilterMixin,
Yoshie Muranakabe3af332020-05-11 08:23:04 -0700207 ],
Derick Montague602e98a2020-10-21 16:20:00 -0500208 beforeRouteLeave(to, from, next) {
209 // Hide loader if the user navigates to another page
210 // before request is fulfilled.
211 this.hideLoader();
212 next();
213 },
Yoshie Muranaka6f102342020-05-05 09:45:39 -0700214 data() {
215 return {
216 fields: [
217 {
Yoshie Muranakabe3af332020-05-11 08:23:04 -0700218 key: 'checkbox',
Derick Montague602e98a2020-10-21 16:20:00 -0500219 sortable: false,
Yoshie Muranakabe3af332020-05-11 08:23:04 -0700220 },
221 {
Yoshie Muranaka6f102342020-05-05 09:45:39 -0700222 key: 'id',
223 label: this.$t('pageEventLogs.table.id'),
Derick Montague602e98a2020-10-21 16:20:00 -0500224 sortable: true,
Yoshie Muranaka6f102342020-05-05 09:45:39 -0700225 },
226 {
227 key: 'severity',
228 label: this.$t('pageEventLogs.table.severity'),
Dixsie Wolmersa04d46f2020-10-22 06:34:56 -0500229 sortable: true,
Derick Montague602e98a2020-10-21 16:20:00 -0500230 tdClass: 'text-nowrap',
Yoshie Muranaka6f102342020-05-05 09:45:39 -0700231 },
232 {
233 key: 'type',
234 label: this.$t('pageEventLogs.table.type'),
Derick Montague602e98a2020-10-21 16:20:00 -0500235 sortable: true,
Yoshie Muranaka6f102342020-05-05 09:45:39 -0700236 },
237 {
238 key: 'date',
239 label: this.$t('pageEventLogs.table.date'),
Derick Montague602e98a2020-10-21 16:20:00 -0500240 sortable: true,
Yoshie Muranaka6f102342020-05-05 09:45:39 -0700241 },
242 {
243 key: 'description',
Derick Montague602e98a2020-10-21 16:20:00 -0500244 label: this.$t('pageEventLogs.table.description'),
Yoshie Muranakabe3af332020-05-11 08:23:04 -0700245 },
246 {
247 key: 'actions',
248 sortable: false,
249 label: '',
Derick Montague602e98a2020-10-21 16:20:00 -0500250 tdClass: 'text-right text-nowrap',
251 },
Yoshie Muranaka6f102342020-05-05 09:45:39 -0700252 ],
253 tableFilters: [
254 {
Yoshie Muranaka00454002020-06-22 09:14:05 -0700255 key: 'severity',
Yoshie Muranaka6f102342020-05-05 09:45:39 -0700256 label: this.$t('pageEventLogs.table.severity'),
Derick Montague602e98a2020-10-21 16:20:00 -0500257 values: ['OK', 'Warning', 'Critical'],
258 },
Yoshie Muranaka6f102342020-05-05 09:45:39 -0700259 ],
Yoshie Muranakabe3af332020-05-11 08:23:04 -0700260 activeFilters: [],
261 batchActions: [
262 {
263 value: 'delete',
Derick Montague602e98a2020-10-21 16:20:00 -0500264 label: this.$t('global.action.delete'),
265 },
Yoshie Muranaka68bbba22020-05-18 09:49:37 -0700266 ],
SurenNewareba91c492020-10-27 14:18:54 +0530267 currentPage: currentPage,
Yoshie Muranaka68bbba22020-05-18 09:49:37 -0700268 filterStartDate: null,
Yoshie Muranaka193c22a2020-06-30 20:54:10 -0700269 filterEndDate: null,
SurenNewareba91c492020-10-27 14:18:54 +0530270 itemsPerPageOptions: itemsPerPageOptions,
271 perPage: perPage,
272 searchFilter: searchFilter,
Derick Montague602e98a2020-10-21 16:20:00 -0500273 searchTotalFilteredRows: 0,
SurenNewareba91c492020-10-27 14:18:54 +0530274 selectedRows: selectedRows,
275 tableHeaderCheckboxModel: tableHeaderCheckboxModel,
276 tableHeaderCheckboxIndeterminate: tableHeaderCheckboxIndeterminate,
Yoshie Muranaka6f102342020-05-05 09:45:39 -0700277 };
278 },
279 computed: {
Sukanya Pandey99010962020-07-27 21:44:47 +0530280 filteredRows() {
281 return this.searchFilter
282 ? this.searchTotalFilteredRows
283 : this.filteredLogs.length;
284 },
Yoshie Muranaka6f102342020-05-05 09:45:39 -0700285 allLogs() {
Derick Montague602e98a2020-10-21 16:20:00 -0500286 return this.$store.getters['eventLog/allEvents'].map((event) => {
Yoshie Muranakabe3af332020-05-11 08:23:04 -0700287 return {
288 ...event,
289 actions: [
290 {
291 value: 'export',
Derick Montague602e98a2020-10-21 16:20:00 -0500292 title: this.$t('global.action.export'),
Yoshie Muranakabe3af332020-05-11 08:23:04 -0700293 },
294 {
295 value: 'delete',
Derick Montague602e98a2020-10-21 16:20:00 -0500296 title: this.$t('global.action.delete'),
297 },
298 ],
Yoshie Muranakabe3af332020-05-11 08:23:04 -0700299 };
300 });
Yoshie Muranaka6f102342020-05-05 09:45:39 -0700301 },
Yoshie Muranakabe3af332020-05-11 08:23:04 -0700302 batchExportData() {
Derick Montague602e98a2020-10-21 16:20:00 -0500303 return this.selectedRows.map((row) => omit(row, 'actions'));
Yoshie Muranaka68bbba22020-05-18 09:49:37 -0700304 },
305 filteredLogsByDate() {
306 return this.getFilteredTableDataByDate(
307 this.allLogs,
308 this.filterStartDate,
309 this.filterEndDate
310 );
311 },
312 filteredLogs() {
313 return this.getFilteredTableData(
314 this.filteredLogsByDate,
315 this.activeFilters
316 );
Derick Montague602e98a2020-10-21 16:20:00 -0500317 },
Yoshie Muranaka6f102342020-05-05 09:45:39 -0700318 },
319 created() {
320 this.startLoader();
321 this.$store
322 .dispatch('eventLog/getEventLogData')
323 .finally(() => this.endLoader());
324 },
Yoshie Muranaka6f102342020-05-05 09:45:39 -0700325 methods: {
Yoshie Muranakabe3af332020-05-11 08:23:04 -0700326 deleteLogs(uris) {
Derick Montague602e98a2020-10-21 16:20:00 -0500327 this.$store
328 .dispatch('eventLog/deleteEventLogs', uris)
329 .then((messages) => {
330 messages.forEach(({ type, message }) => {
331 if (type === 'success') {
332 this.successToast(message);
333 } else if (type === 'error') {
334 this.errorToast(message);
335 }
336 });
Yoshie Muranakabe3af332020-05-11 08:23:04 -0700337 });
Yoshie Muranakabe3af332020-05-11 08:23:04 -0700338 },
Yoshie Muranaka6f102342020-05-05 09:45:39 -0700339 onFilterChange({ activeFilters }) {
340 this.activeFilters = activeFilters;
Yoshie Muranaka6f102342020-05-05 09:45:39 -0700341 },
342 onSortCompare(a, b, key) {
343 if (key === 'severity') {
Yoshie Muranaka73e419a2020-06-18 13:08:19 -0700344 return this.sortStatus(a, b, key);
Yoshie Muranaka6f102342020-05-05 09:45:39 -0700345 }
Yoshie Muranakabe3af332020-05-11 08:23:04 -0700346 },
347 onTableRowAction(action, { uri }) {
348 if (action === 'delete') {
349 this.$bvModal
350 .msgBoxConfirm(this.$tc('pageEventLogs.modal.deleteMessage'), {
351 title: this.$tc('pageEventLogs.modal.deleteTitle'),
Derick Montague602e98a2020-10-21 16:20:00 -0500352 okTitle: this.$t('global.action.delete'),
Sukanya Pandey38357132020-12-22 13:40:59 +0530353 cancelTitle: this.$t('global.action.cancel'),
Yoshie Muranakabe3af332020-05-11 08:23:04 -0700354 })
Derick Montague602e98a2020-10-21 16:20:00 -0500355 .then((deleteConfirmed) => {
Yoshie Muranakabe3af332020-05-11 08:23:04 -0700356 if (deleteConfirmed) this.deleteLogs([uri]);
357 });
358 }
359 },
360 onBatchAction(action) {
361 if (action === 'delete') {
Derick Montague602e98a2020-10-21 16:20:00 -0500362 const uris = this.selectedRows.map((row) => row.uri);
Yoshie Muranakabe3af332020-05-11 08:23:04 -0700363 this.$bvModal
364 .msgBoxConfirm(
365 this.$tc(
366 'pageEventLogs.modal.deleteMessage',
367 this.selectedRows.length
368 ),
369 {
370 title: this.$tc(
371 'pageEventLogs.modal.deleteTitle',
372 this.selectedRows.length
373 ),
Derick Montague602e98a2020-10-21 16:20:00 -0500374 okTitle: this.$t('global.action.delete'),
Sukanya Pandey38357132020-12-22 13:40:59 +0530375 cancelTitle: this.$t('global.action.cancel'),
Yoshie Muranakabe3af332020-05-11 08:23:04 -0700376 }
377 )
Derick Montague602e98a2020-10-21 16:20:00 -0500378 .then((deleteConfirmed) => {
Sukanya Pandey2f6d5522020-10-28 10:38:00 +0530379 if (deleteConfirmed) {
380 if (this.selectedRows.length === this.allLogs.length) {
381 this.$store
382 .dispatch(
383 'eventLog/deleteAllEventLogs',
384 this.selectedRows.length
385 )
386 .then((message) => this.successToast(message))
387 .catch(({ message }) => this.errorToast(message));
388 } else {
389 this.deleteLogs(uris);
390 }
391 }
Yoshie Muranakabe3af332020-05-11 08:23:04 -0700392 });
393 }
Yoshie Muranaka68bbba22020-05-18 09:49:37 -0700394 },
395 onChangeDateTimeFilter({ fromDate, toDate }) {
396 this.filterStartDate = fromDate;
397 this.filterEndDate = toDate;
Yoshie Muranaka193c22a2020-06-30 20:54:10 -0700398 },
Sukanya Pandey99010962020-07-27 21:44:47 +0530399 onFiltered(filteredItems) {
400 this.searchTotalFilteredRows = filteredItems.length;
401 },
SurenNeware96ebb0d2020-09-08 17:42:39 +0530402 // Create export file name based on date
403 exportFileNameByDate() {
404 let date = new Date();
405 date =
406 date.toISOString().slice(0, 10) +
407 '_' +
Derick Montague602e98a2020-10-21 16:20:00 -0500408 date.toString().split(':').join('-').split(' ')[4];
SurenNeware96ebb0d2020-09-08 17:42:39 +0530409 return this.$t('pageEventLogs.exportFilePrefix') + date;
Derick Montague602e98a2020-10-21 16:20:00 -0500410 },
411 },
Yoshie Muranaka6f102342020-05-05 09:45:39 -0700412};
413</script>