diff --git a/frontend/src/components/sidebar/BrowserTree.vue b/frontend/src/components/sidebar/BrowserTree.vue index 064ad13..5d18d55 100644 --- a/frontend/src/components/sidebar/BrowserTree.vue +++ b/frontend/src/components/sidebar/BrowserTree.vue @@ -62,6 +62,9 @@ const data = computed(() => { const backgroundColor = computed(() => { const { markColor: hex = '' } = connectionStore.serverProfile[props.server] || {} + if (isEmpty(hex)) { + return '' + } const { r, g, b } = parseHexColor(hex) return `rgba(${r}, ${g}, ${b}, 0.2)` }) diff --git a/frontend/src/components/sidebar/ConnectionPane.vue b/frontend/src/components/sidebar/ConnectionPane.vue index 26edc94..a5cf1f2 100644 --- a/frontend/src/components/sidebar/ConnectionPane.vue +++ b/frontend/src/components/sidebar/ConnectionPane.vue @@ -14,10 +14,6 @@ const themeVars = useThemeVars() const dialogStore = useDialogStore() const connectionStore = useConnectionStore() const filterPattern = ref('') - -const onDisconnectAll = () => { - connectionStore.closeAllConnection() -}