records listing optimizations

This commit is contained in:
Gani Georgiev
2022-09-28 21:55:18 +03:00
parent 3cbab96f51
commit b84930f21a
19 changed files with 518 additions and 477 deletions
+5 -6
View File
@@ -1,14 +1,13 @@
<script>
import CommonHelper from "@/utils/CommonHelper";
import tooltip from "@/actions/tooltip";
export let date = "";
// note: manual trim the ms without converting to DateTime
// to help improving the rendering performance in large data sets
let shortDate = date.length > 19 ? date.substring(0, 19) : date;
</script>
{#if date}
<span class="txt" use:tooltip={CommonHelper.formatToLocalDate(date) + " Local"}>
{CommonHelper.formatToUTCDate(date)} UTC
</span>
<span class="txt">{shortDate} UTC</span>
{:else}
<span class="txt txt-hint">N/A</span>
{/if}