From 43411580d098eaf8fe2e5f871b26b662c655c2c8 Mon Sep 17 00:00:00 2001 From: Askar Yusupov Date: Wed, 10 Jan 2024 09:34:35 +0500 Subject: [PATCH] feat: add a Nodes.filter property for items fix #182 --- src/layouts/Nodes.svelte | 9 ++++-- src/pages/Materials.svelte | 61 ++++++++++++++++++++++---------------- src/pages/Tasks.svelte | 52 ++++++++++++++++---------------- 3 files changed, 69 insertions(+), 53 deletions(-) diff --git a/src/layouts/Nodes.svelte b/src/layouts/Nodes.svelte index a5ff8d2..b95e53f 100644 --- a/src/layouts/Nodes.svelte +++ b/src/layouts/Nodes.svelte @@ -27,10 +27,14 @@ /> {/if} - {#each data as item (item.id)} + {#each data.filter(filter) as item (item.id)} {:else} -
Nothing found — maybe goto('/import')}>add data?
+
+ Nothing found — maybe goto('/import')} + >add data? +
{/each} {:catch _error} @@ -53,6 +57,7 @@