mirror of
https://github.com/dbgate/dbgate
synced 2024-11-07 20:26:23 +00:00
unsaved connection workflow fix
This commit is contained in:
parent
b54026b039
commit
5e2279cd10
@ -138,10 +138,15 @@
|
|||||||
if (!connection._id) {
|
if (!connection._id) {
|
||||||
connection = {
|
connection = {
|
||||||
...connection,
|
...connection,
|
||||||
unsaved: !connection._id,
|
unsaved: true,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
const saved = await apiCall('connections/save', connection);
|
const saved = await apiCall('connections/save', connection);
|
||||||
|
$values = {
|
||||||
|
...$values,
|
||||||
|
unsaved: connection.unsaved,
|
||||||
|
_id: saved._id,
|
||||||
|
};
|
||||||
openConnection(saved);
|
openConnection(saved);
|
||||||
// closeMultipleTabs(x => x.tabid == tabid, true);
|
// closeMultipleTabs(x => x.tabid == tabid, true);
|
||||||
}
|
}
|
||||||
@ -161,6 +166,8 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
$: isConnected = $openedConnections.includes($values._id) || $openedSingleDatabaseConnections.includes($values._id);
|
$: isConnected = $openedConnections.includes($values._id) || $openedSingleDatabaseConnections.includes($values._id);
|
||||||
|
|
||||||
|
$: console.log('CONN VALUES', $values);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<FormProviderCore template={FormFieldTemplateLarge} {values}>
|
<FormProviderCore template={FormFieldTemplateLarge} {values}>
|
||||||
|
Loading…
Reference in New Issue
Block a user