1
1
mirror of https://github.com/Fabio286/antares.git synced 2025-06-05 21:59:22 +02:00

fix: adding a connection default values not change when switching clients, closes #101

This commit is contained in:
2021-09-15 11:08:00 +02:00
parent 6bfc229b77
commit d4888ad8fb

View File

@ -393,6 +393,13 @@ export default {
return this.isConnecting || this.isTesting; 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 () { created () {
this.setDefaults(); this.setDefaults();