From 7f96d170e2f50cf4d3e07792ea5be4c9c92705a7 Mon Sep 17 00:00:00 2001 From: nichenqin Date: Tue, 10 Sep 2024 13:44:23 +0800 Subject: [PATCH] ui: kanban no record ui --- .../kanban-view/select-kanban-lane.svelte | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/apps/frontend/src/lib/components/blocks/kanban-view/select-kanban-lane.svelte b/apps/frontend/src/lib/components/blocks/kanban-view/select-kanban-lane.svelte index 9cf1b8c19..3f6ef7e7a 100644 --- a/apps/frontend/src/lib/components/blocks/kanban-view/select-kanban-lane.svelte +++ b/apps/frontend/src/lib/components/blocks/kanban-view/select-kanban-lane.svelte @@ -304,9 +304,22 @@ )} > {#if !readonly && $hasPermission("record:create")} - + {#if $query.isFetchedAfterMount} + {#if $query.data?.pages[0]?.total > 0} + + {:else} +
+

No records

+

Create a new record of this option

+ +
+ {/if} + {/if} {/if} {#if $query.isLoading}