diff --git a/src/renderer/src/components/connection/ConnectionCard.vue b/src/renderer/src/components/connection/ConnectionCard.vue index 2a1df8d..549cc69 100644 --- a/src/renderer/src/components/connection/ConnectionCard.vue +++ b/src/renderer/src/components/connection/ConnectionCard.vue @@ -32,9 +32,10 @@ function onDragStart(e: DragEvent) { '--card-color': assignedColor || 'transparent', 'border-left': assignedColor ? `3px solid ${assignedColor}` : undefined, }" - draggable="true" - @dragstart="onDragStart" - > + draggable="true" + @dragstart="onDragStart" + @click="connStore.switchTo(connection.id)" +>
{{ connection.name }}
diff --git a/src/renderer/src/components/layout/MainArea.vue b/src/renderer/src/components/layout/MainArea.vue index 392d12e..da45d46 100644 --- a/src/renderer/src/components/layout/MainArea.vue +++ b/src/renderer/src/components/layout/MainArea.vue @@ -156,11 +156,6 @@ function restoreTabState(connId: string) { } } -// Connected connections for switcher -const connectedConnections = computed(() => - connStore.connections.filter(c => connStore.connectedIds.includes(c.id)) -) - // Switch active connection, save/restore tabs watch( () => connStore.activeId, @@ -206,28 +201,6 @@ onUnmounted(() => {