mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 04:26:01 +00:00
cloud file, folder operations
This commit is contained in:
@@ -262,11 +262,15 @@
|
||||
});
|
||||
};
|
||||
const handleDuplicate = () => {
|
||||
apiCall('connections/save', {
|
||||
...data,
|
||||
_id: undefined,
|
||||
displayName: `${getConnectionLabel(data)} - copy`,
|
||||
});
|
||||
if (data._id.startsWith('cloud://')) {
|
||||
apiCall('cloud/duplicate-connection', { conid: data._id });
|
||||
} else {
|
||||
apiCall('connections/save', {
|
||||
...data,
|
||||
_id: undefined,
|
||||
displayName: `${getConnectionLabel(data)} - copy`,
|
||||
});
|
||||
}
|
||||
};
|
||||
const handleCreateDatabase = () => {
|
||||
showModal(InputTextModal, {
|
||||
|
||||
Reference in New Issue
Block a user