@@ -8,12 +8,14 @@ import {
88 faSpinner ,
99} from " @fortawesome/free-solid-svg-icons" ;
1010import { FontAwesomeIcon } from " @fortawesome/vue-fontawesome" ;
11- import { BTable } from " bootstrap-vue" ;
11+
12+ import type { TableField } from " @/components/Common/GTable.types" ;
1213
1314import type { ExportRecord } from " ./models/exportRecordModel" ;
1415
1516import GButton from " @/components/BaseComponents/GButton.vue" ;
1617import GButtonGroup from " @/components/BaseComponents/GButtonGroup.vue" ;
18+ import GTable from " @/components/Common/GTable.vue" ;
1719
1820interface Props {
1921 records: ExportRecord [];
@@ -26,13 +28,13 @@ const emit = defineEmits<{
2628 (e : " onCopyDownloadLink" , record : ExportRecord ): void ;
2729}>();
2830
29- const fields = [
31+ const fields: TableField [] = [
3032 { key: " elapsedTime" , label: " Exported" },
3133 { key: " format" , label: " Format" },
3234 { key: " expires" , label: " Expires" },
33- { key: " isUpToDate" , label: " Up to date" , class : " text- center" },
34- { key: " isReady" , label: " Ready" , class : " text- center" },
35- { key: " actions" , label: " Actions" },
35+ { key: " isUpToDate" , label: " Up to date" , align : " center" },
36+ { key: " isReady" , label: " Ready" , align : " center" },
37+ { key: " actions" , label: " Actions" , align: " center " },
3638];
3739
3840async function reimportObject(record : ExportRecord ) {
@@ -49,9 +51,9 @@ function copyDownloadLink(record: ExportRecord) {
4951 </script >
5052
5153<template >
52- <BTable :items =" props.records" :fields =" fields" >
54+ <GTable :items =" props.records" :fields =" fields" >
5355 <template v-slot :cell (elapsedTime)="row">
54- <span :title =" row.item.date" >{{ row.value }}</span >
56+ <span :title =" row.item.date.toLocaleString() " >{{ row.value }}</span >
5557 </template >
5658
5759 <template v-slot :cell (format)="row">
@@ -61,7 +63,7 @@ function copyDownloadLink(record: ExportRecord) {
6163 <template v-slot :cell (expires)="row">
6264 <span v-if =" row.item.hasExpired" >Expired</span >
6365
64- <span v-else-if =" row.item.expirationDate" :title =" row.item.expirationDate" >
66+ <span v-else-if =" row.item.expirationDate" :title =" row.item.expirationDate.toLocaleString() " >
6567 {{ row.item.expirationElapsedTime }}
6668 </span >
6769
@@ -131,5 +133,5 @@ function copyDownloadLink(record: ExportRecord) {
131133 </GButton >
132134 </GButtonGroup >
133135 </template >
134- </BTable >
136+ </GTable >
135137</template >
0 commit comments