diff --git a/src/renderer/components/ModalAllConnections.vue b/src/renderer/components/ModalAllConnections.vue index ea9f840a..d2b40cde 100644 --- a/src/renderer/components/ModalAllConnections.vue +++ b/src/renderer/components/ModalAllConnections.vue @@ -55,20 +55,7 @@
{{ clients.get(connection.client) || connection.client }}
-
- - +
@@ -171,15 +158,12 @@ const connectionsStore = useConnectionsStore(); const workspacesStore = useWorkspacesStore(); const { connections, - pinnedConnections, lastConnections } = storeToRefs(connectionsStore); const { getSelected: selectedWorkspace } = storeToRefs(workspacesStore); const { getConnectionName, - pinConnection, - unpinConnection, deleteConnection } = connectionsStore; const { selectWorkspace } = workspacesStore; @@ -206,13 +190,10 @@ const sortedConnections = computed(() => { const connTime = lastConnections.value.find((lc) => lc.uid === c.uid)?.time || 0; return { ...c, - time: connTime, - isPinned: pinnedConnections.value.has(c.uid) + time: connTime }; }) .sort((a, b) => { - if (a.isPinned < b.isPinned) return 1; - if (a.isPinned > b.isPinned) return -1; if (a.time < b.time) return 1; if (a.time > b.time) return -1; return 0; diff --git a/src/renderer/components/SettingBarConnections.vue b/src/renderer/components/SettingBarConnections.vue new file mode 100644 index 00000000..ce1a2ccd --- /dev/null +++ b/src/renderer/components/SettingBarConnections.vue @@ -0,0 +1,173 @@ + + + diff --git a/src/renderer/components/SettingBarContext.vue b/src/renderer/components/SettingBarContext.vue index 19fe38ae..bb0421ea 100644 --- a/src/renderer/components/SettingBarContext.vue +++ b/src/renderer/components/SettingBarContext.vue @@ -3,20 +3,6 @@ :context-event="contextEvent" @close-context="$emit('close-context')" > -
- {{ t('word.unpin') }} -
-
- {{ t('word.pin') }} -
{{ t('word.disconnect') }}
-
+
{{ t('word.duplicate') }}
@@ -38,7 +28,7 @@ >