mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-22 09:56:01 +00:00
unsaved connection workflow fix
This commit is contained in:
@@ -138,10 +138,15 @@
|
||||
if (!connection._id) {
|
||||
connection = {
|
||||
...connection,
|
||||
unsaved: !connection._id,
|
||||
unsaved: true,
|
||||
};
|
||||
}
|
||||
const saved = await apiCall('connections/save', connection);
|
||||
$values = {
|
||||
...$values,
|
||||
unsaved: connection.unsaved,
|
||||
_id: saved._id,
|
||||
};
|
||||
openConnection(saved);
|
||||
// closeMultipleTabs(x => x.tabid == tabid, true);
|
||||
}
|
||||
@@ -161,6 +166,8 @@
|
||||
});
|
||||
|
||||
$: isConnected = $openedConnections.includes($values._id) || $openedSingleDatabaseConnections.includes($values._id);
|
||||
|
||||
$: console.log('CONN VALUES', $values);
|
||||
</script>
|
||||
|
||||
<FormProviderCore template={FormFieldTemplateLarge} {values}>
|
||||
|
||||
Reference in New Issue
Block a user