Private
Public Access
feat: hecho filtro de busqueda para los logs
This commit is contained in:
1 parent
1c0da9d70f
commit
a25afa1750
12 files changed
+288
-57
No files matched your search
@@ -10,6 +10,9 @@
|
||||
|
||||
let { logs } = $props();
|
||||
|
||||
/**
|
||||
* @param {string | number | Date} iso
|
||||
*/
|
||||
function formatFecha(iso) {
|
||||
return new Date(iso).toLocaleString('es-AR', {
|
||||
day: '2-digit',
|
||||
@@ -21,7 +24,11 @@
|
||||
}
|
||||
</script>
|
||||
|
||||
<DataTable {headers} rows={logs} expandable>
|
||||
{#if !logs}
|
||||
<p>No hay logs para mostrar</p>
|
||||
{/if}
|
||||
|
||||
<DataTable {headers} rows={logs ?? []} expandable>
|
||||
<svelte:fragment slot="cell" let:row let:cell>
|
||||
{#if cell.key === 'created_at'}
|
||||
{formatFecha(row.created_at)}
|
||||
|
||||
Reference in new issue
Block a user