From 1702246609f40e8338f8dd62499a46498cf7b3ae Mon Sep 17 00:00:00 2001 From: tiny-craft <137850705+tiny-craft@users.noreply.github.com> Date: Wed, 23 Aug 2023 16:40:04 +0800 Subject: [PATCH] perf: replace delete button in bottom of content panel to disconnect --- frontend/src/components/sidebar/BrowserPane.vue | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/frontend/src/components/sidebar/BrowserPane.vue b/frontend/src/components/sidebar/BrowserPane.vue index 437ed06..4dc618f 100644 --- a/frontend/src/components/sidebar/BrowserPane.vue +++ b/frontend/src/components/sidebar/BrowserPane.vue @@ -6,13 +6,13 @@ import IconButton from '@/components/common/IconButton.vue' import useTabStore from 'stores/tab.js' import { computed, reactive, ref } from 'vue' import { get } from 'lodash' -import Delete from '@/components/icons/Delete.vue' import Refresh from '@/components/icons/Refresh.vue' import useDialogStore from 'stores/dialog.js' import { useI18n } from 'vue-i18n' import useConnectionStore from 'stores/connections.js' import { types } from '@/consts/support_redis_type.js' import Search from '@/components/icons/Search.vue' +import Unlink from '@/components/icons/Unlink.vue' const themeVars = useThemeVars() const dialogStore = useDialogStore() @@ -35,8 +35,8 @@ const onNewKey = () => { const i18n = useI18n() const connectionStore = useConnectionStore() -const onDeleteKey = () => { - browserTreeRef.value?.handleSelectContextMenu('value_remove') +const onDisconnect = () => { + browserTreeRef.value?.handleSelectContextMenu('server_close') } const onRefresh = () => { @@ -94,14 +94,7 @@ const filterTypeOptions = computed(() => {
-