From cefd26c098a5748a86855489d24ec9e625ffbf35 Mon Sep 17 00:00:00 2001 From: ItzNotABug Date: Fri, 19 Jul 2024 14:42:11 +0530 Subject: [PATCH 1/4] fix: documents selection state not reset on navigation. --- .../collection-[collection]/table.svelte | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/routes/(console)/project-[project]/databases/database-[database]/collection-[collection]/table.svelte b/src/routes/(console)/project-[project]/databases/database-[database]/collection-[collection]/table.svelte index 8b8c7832d..4ebc07e0a 100644 --- a/src/routes/(console)/project-[project]/databases/database-[database]/collection-[collection]/table.svelte +++ b/src/routes/(console)/project-[project]/databases/database-[database]/collection-[collection]/table.svelte @@ -1,5 +1,5 @@ - -
- Documents -
- -
- - - -
- -
+{#key $page.params.collection} + +
+ Documents +
+ + + +
+ +
+ +
+
-
- {#if hasAttributes && hasValidAttributes} - {#if data.documents.total} - + {#if hasAttributes && hasValidAttributes} + {#if data.documents.total} +
- - {:else if $hasPageQueries} - -
-
- Sorry, we couldn't find any documents. -

There are no documents that match your filters.

+ + {:else if $hasPageQueries} + +
+
+ Sorry, we couldn't find any documents. +

There are no documents that match your filters.

+
+
+ +
-
+ + {:else} + + {/if} + {:else} + (showCreateDropdown = true)}> +
+ Create an attribute to get started. +

+ Need a hand? Learn more in our documentation. +

+
+
+ + -
+
-
- {:else} - + {/if} - {:else} - (showCreateDropdown = true)}> -
- Create an attribute to get started. -

- Need a hand? Learn more in our documentation. -

-
-
- - - - -
-
- {/if} - + +{/key} diff --git a/src/routes/(console)/project-[project]/databases/database-[database]/collection-[collection]/table.svelte b/src/routes/(console)/project-[project]/databases/database-[database]/collection-[collection]/table.svelte index 248ce7735..8b8c7832d 100644 --- a/src/routes/(console)/project-[project]/databases/database-[database]/collection-[collection]/table.svelte +++ b/src/routes/(console)/project-[project]/databases/database-[database]/collection-[collection]/table.svelte @@ -1,5 +1,5 @@