From 77541ed3716517b32c15518d024d8847bf7670a7 Mon Sep 17 00:00:00 2001 From: tiny-craft <137850705+tiny-craft@users.noreply.github.com> Date: Mon, 16 Oct 2023 18:36:42 +0800 Subject: [PATCH] perf: change the function buttons for database nodes to be persistent --- frontend/src/components/sidebar/BrowserTree.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/sidebar/BrowserTree.vue b/frontend/src/components/sidebar/BrowserTree.vue index 08d300b..426b199 100644 --- a/frontend/src/components/sidebar/BrowserTree.vue +++ b/frontend/src/components/sidebar/BrowserTree.vue @@ -529,7 +529,7 @@ const getValueMenu = () => { // render menu function icon const renderSuffix = ({ option }) => { - if (includes(selectedKeys.value, option.key)) { + if ((option.type === ConnectionType.RedisDB && option.opened) || includes(selectedKeys.value, option.key)) { switch (option.type) { case ConnectionType.RedisDB: return renderIconMenu(getDatabaseMenu(option.opened))