@@ -6,6 +6,8 @@ import { useRoute } from "vue-router";
6
6
import DataView from " ../DataView.vue" ;
7
7
import SortableColumn from " ../SortableColumn.vue" ;
8
8
import { MessageStatus } from " @/resources/Message" ;
9
+ import moment from " moment" ;
10
+ import { useFormatTime } from " @/composables/formatter" ;
9
11
10
12
const route = useRoute ();
11
13
const store = useAuditStore ();
@@ -52,6 +54,13 @@ function friendlyTypeName(messageType: string) {
52
54
const typeName = typeClass .split (" ." ).reverse ()[0 ];
53
55
return typeName .replace (/ \+ / g , " ." );
54
56
}
57
+
58
+ function formatDotNetTimespan(timespan : string ) {
59
+ // assuming if we have days in the timespan then something is very, very wrong
60
+ const [hh, mm, ss] = timespan .split (" :" );
61
+ const time = useFormatTime (((parseInt (hh ) * 60 + parseInt (mm )) * 60 + parseFloat (ss )) * 1000 );
62
+ return ` ${time .value } ${time .unit } ` ;
63
+ }
55
64
</script >
56
65
57
66
<template >
@@ -99,10 +108,10 @@ function friendlyTypeName(messageType: string) {
99
108
{{ friendlyTypeName(message.message_type) }}
100
109
</div >
101
110
<div role =" cell" aria-label =" time-sent" class =" col-2 time-sent" >
102
- {{ "todo" }}
111
+ {{ moment(message.time_sent).local().format("LLLL") }}
103
112
</div >
104
113
<div role =" cell" aria-label =" processing-time" class =" col-2 processing-time" >
105
- {{ "todo" }}
114
+ {{ formatDotNetTimespan(message.processing_time) }}
106
115
</div >
107
116
</div >
108
117
</div >
0 commit comments