mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-05-01 13:13:58 +00:00
unsaved connection workflow fix
This commit is contained in:
@@ -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}>
|
||||||
|
|||||||
Reference in New Issue
Block a user