From 9643d4b20d517cb12be322103806b64cc587e2f4 Mon Sep 17 00:00:00 2001 From: Darshan Date: Sat, 31 May 2025 14:02:08 +0530 Subject: [PATCH] update: hide menu on click. --- .../collection-[collection]/attributes/+page.svelte | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/routes/(console)/project-[region]-[project]/databases/database-[database]/collection-[collection]/attributes/+page.svelte b/src/routes/(console)/project-[region]-[project]/databases/database-[database]/collection-[collection]/attributes/+page.svelte index 6a1983486..acad8b897 100644 --- a/src/routes/(console)/project-[region]-[project]/databases/database-[database]/collection-[collection]/attributes/+page.svelte +++ b/src/routes/(console)/project-[region]-[project]/databases/database-[database]/collection-[collection]/attributes/+page.svelte @@ -169,10 +169,11 @@ - + { + on:click={(event) => { + toggle(event); showEdit = true; selectedAttribute = attribute; showDropdown[index] = false; @@ -182,7 +183,8 @@ {#if !isRelationship(attribute)} { + on:click={(event) => { + toggle(event); selectedAttribute = attribute; showCreateIndex = true; showDropdown[index] = false; @@ -193,10 +195,11 @@ {#if attribute.status !== 'processing'} { - selectedAttribute = attribute; + on:click={(event) => { + toggle(event); showDelete = true; showDropdown[index] = false; + selectedAttribute = attribute; trackEvent(Click.DatabaseAttributeDelete); }}> Delete