diff --git a/src/renderer/src/components/NewConnectionDialog.vue b/src/renderer/src/components/NewConnectionDialog.vue index 9427ec5..6833f85 100644 --- a/src/renderer/src/components/NewConnectionDialog.vue +++ b/src/renderer/src/components/NewConnectionDialog.vue @@ -40,9 +40,11 @@ const form = reactive({ const saving = ref(false) const testing = ref(false) const isEdit = ref(false) +const activeCollapses = ref([]) watch(() => props.visible, async (v) => { if (v) { + activeCollapses.value = [] if (props.connection) { isEdit.value = true const decryptedAuth = await connStore.decryptPassword(props.connection.auth || '') @@ -219,128 +221,183 @@ async function handleSave() { - - - - - - - - + + +
+
+
🔌
+ Basic Connection +
+
+ + - - - - + + + + + + + + + + + + + + - - - - - - - - - - - - - {{ t('connection.tls') }} - - + - - - - {{ t('connection.sentinel') }} - - - - - - - {{ t('connection.cluster') }} - - - - - - {{ t('connection.ssh') }} - - + + + + + +
+ + {{ t('connection.cluster') }} + +
+
+ + + + +
+ + {{ t('connection.ssh') }} + + +
+
+