fix: code review

This commit is contained in:
Arman
2023-08-16 17:17:28 +02:00
parent c4331ea10d
commit cb4e54217a
+7 -18
View File
@@ -10,7 +10,6 @@
TableCellHead,
TableCellText,
TableHeader,
TableList,
TableRow
} from '$lib/elements/table';
import { beforeNavigate } from '$app/navigation';
@@ -27,21 +26,18 @@
}
beforeNavigate((n) => {
if ($log.show) {
if (n.type === 'popstate') {
n.cancel();
}
$log.show = false;
if (!$log.show) return;
if (n.type === 'popstate') {
n.cancel();
}
$log.show = false;
});
$: execution = $log.data;
$: func = $log.func;
$: if (execution) {
if (execution.errors) {
selectedResponse = 'errors';
}
$: if (execution?.errors) {
selectedResponse = 'errors';
}
</script>
@@ -85,20 +81,13 @@
{calculateTime(execution.duration)}
</time>
</li>
<!-- <li class="text">
<b>Cold-start duration:</b>
<time> ?? </time>
</li> -->
<li class="text">
<b>Created at:</b>
<time>
{toLocaleDateTime(execution.$createdAt)}
</time>
</li>
<!-- <li class="text">
<b>Host:</b>
<span> ??</span>
</li> -->
</ul>
<div class="status u-margin-inline-start-auto">
<Status status={execution.status}>{execution.status}</Status>