From d4888ad8fba3c8e8ec2d6b6d9a78bb212d83eeed Mon Sep 17 00:00:00 2001 From: Fabio Di Stasio Date: Wed, 15 Sep 2021 11:08:00 +0200 Subject: [PATCH] fix: adding a connection default values not change when switching clients, closes #101 --- src/renderer/components/WorkspaceAddConnectionPanel.vue | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/renderer/components/WorkspaceAddConnectionPanel.vue b/src/renderer/components/WorkspaceAddConnectionPanel.vue index e106dc5b..50b38e8c 100644 --- a/src/renderer/components/WorkspaceAddConnectionPanel.vue +++ b/src/renderer/components/WorkspaceAddConnectionPanel.vue @@ -393,6 +393,13 @@ export default { return this.isConnecting || this.isTesting; } }, + watch: { + 'connection.client' () { + this.connection.user = this.customizations.defaultUser; + this.connection.port = this.customizations.defaultPort; + this.connection.database = this.customizations.defaultDatabase; + } + }, created () { this.setDefaults();