mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-30 23:13:57 +00:00
cloud fixes
This commit is contained in:
@@ -159,6 +159,10 @@ module.exports = {
|
|||||||
'connection'
|
'connection'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if (resp.apiErrorMessage) {
|
||||||
|
return resp;
|
||||||
|
}
|
||||||
|
|
||||||
removeCloudCachedConnection(folid, resp.cntid);
|
removeCloudCachedConnection(folid, resp.cntid);
|
||||||
cntid = resp.cntid;
|
cntid = resp.cntid;
|
||||||
socket.emitChanged('cloud-content-changed');
|
socket.emitChanged('cloud-content-changed');
|
||||||
|
|||||||
@@ -189,12 +189,14 @@
|
|||||||
getCurrentConnection()?._id?.startsWith('cloud://')
|
getCurrentConnection()?._id?.startsWith('cloud://')
|
||||||
) {
|
) {
|
||||||
let connection = getCurrentConnection();
|
let connection = getCurrentConnection();
|
||||||
await apiCall('cloud/save-connection', { connection });
|
const resp = await apiCall('cloud/save-connection', { connection });
|
||||||
showSnackbarSuccess('Connection saved');
|
if (resp?._id) {
|
||||||
changeTab(tabid, tab => ({
|
showSnackbarSuccess('Connection saved');
|
||||||
...tab,
|
changeTab(tabid, tab => ({
|
||||||
title: getConnectionLabel(connection),
|
...tab,
|
||||||
}));
|
title: getConnectionLabel(connection),
|
||||||
|
}));
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
let connection = getCurrentConnection();
|
let connection = getCurrentConnection();
|
||||||
connection = {
|
connection = {
|
||||||
|
|||||||
@@ -222,7 +222,7 @@
|
|||||||
module={cloudContentAppObject}
|
module={cloudContentAppObject}
|
||||||
emptyGroupNames={emptyCloudContent}
|
emptyGroupNames={emptyCloudContent}
|
||||||
groupFunc={data => data.folid}
|
groupFunc={data => data.folid}
|
||||||
mapGroupTitle={folid => contentGroupMap[folid]?.name}
|
mapGroupTitle={folid => `${contentGroupMap[folid]?.name} - ${contentGroupMap[folid]?.role}`}
|
||||||
filter={publicFilter}
|
filter={publicFilter}
|
||||||
subItemsComponent={() => SubCloudItemsList}
|
subItemsComponent={() => SubCloudItemsList}
|
||||||
expandIconFunc={plusExpandIcon}
|
expandIconFunc={plusExpandIcon}
|
||||||
|
|||||||
Reference in New Issue
Block a user