Skip to content

Commit 989feb8

Browse files
Merge pull request #50 from DataKitchen/fix-connection
fix(connection): save button not enabled correctly when switching flavors
2 parents e2cc35b + cab8b61 commit 989feb8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

testgen/ui/components/frontend/js/components/connection_form.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ const ConnectionForm = (props, saveButton) => {
190190
getValue(props.flavors).find(f => f.value === connectionFlavor.rawVal),
191191
(formValue, isValid) => {
192192
updatedConnection.val = {...updatedConnection.val, ...formValue};
193-
setFieldValidity('mssql_form', isValid);
193+
setFieldValidity('postgresql_form', isValid);
194194
},
195195
connection,
196196
dynamicConnectionUrl,
@@ -226,6 +226,7 @@ const ConnectionForm = (props, saveButton) => {
226226

227227
const authenticationForm = van.derive(() => {
228228
const selectedFlavorCode = connectionFlavor.val;
229+
validityPerField.val = {connection_name: validityPerField.val.connection_name};
229230
const flavor = getValue(props.flavors).find(f => f.value === selectedFlavorCode);
230231
return authenticationForms[flavor.value]();
231232
});

0 commit comments

Comments
 (0)