From e9c35fe61969cfdf9d0bd61f0029f96033873e4e Mon Sep 17 00:00:00 2001 From: bigFish0124 Date: Mon, 17 Aug 2026 11:20:28 +0800 Subject: [PATCH] feat(sidebar): put close database connection first in context menu --- .../desktop/src/components/sidebar/SidebarTreeRuntimeHost.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/desktop/src/components/sidebar/SidebarTreeRuntimeHost.vue b/apps/desktop/src/components/sidebar/SidebarTreeRuntimeHost.vue index e8a1dc903b..201039f157 100644 --- a/apps/desktop/src/components/sidebar/SidebarTreeRuntimeHost.vue +++ b/apps/desktop/src/components/sidebar/SidebarTreeRuntimeHost.vue @@ -4665,8 +4665,8 @@ function buildDatabaseSidebarMenu(context: SidebarMenuFactoryContext): boolean { return true; } if (canCloseDatabaseConnection.value) { - items.push({ label: t("contextMenu.closeDatabaseConnection"), action: closeDatabaseConnection, icon: Unplug }); - items.push({ label: "", separator: true }); + items.unshift({ label: "", separator: true }); + items.unshift({ label: t("contextMenu.closeDatabaseConnection"), action: closeDatabaseConnection, icon: Unplug }); } items.push(copyNameMenuItem()); items.push({ label: "", separator: true });