mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-05-03 11:43:57 +00:00
API rename
This commit is contained in:
@@ -110,8 +110,8 @@ module.exports = {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
moveConnectionCloud_meta: true,
|
copyConnectionCloud_meta: true,
|
||||||
async moveConnectionCloud({ conid, folid }) {
|
async copyConnectionCloud({ conid, folid }) {
|
||||||
const conn = await connections.getCore({ conid });
|
const conn = await connections.getCore({ conid });
|
||||||
const folderEncryptor = await getCloudFolderEncryptor(folid);
|
const folderEncryptor = await getCloudFolderEncryptor(folid);
|
||||||
const recryptedConn = recryptConnection(conn, getInternalEncryptor(), folderEncryptor);
|
const recryptedConn = recryptConnection(conn, getInternalEncryptor(), folderEncryptor);
|
||||||
|
|||||||
@@ -336,13 +336,13 @@
|
|||||||
!$openedConnections.includes(data._id) &&
|
!$openedConnections.includes(data._id) &&
|
||||||
$cloudSigninTokenHolder &&
|
$cloudSigninTokenHolder &&
|
||||||
passProps?.cloudContentList?.length > 0 && {
|
passProps?.cloudContentList?.length > 0 && {
|
||||||
text: _t('connection.moveToCloudFolder', { defaultMessage: 'Move to cloud folder' }),
|
text: _t('connection.copyToCloudFolder', { defaultMessage: 'Copy to cloud folder' }),
|
||||||
submenu: passProps?.cloudContentList
|
submenu: passProps?.cloudContentList
|
||||||
?.filter(x => x.role == 'write' || x.role == 'admin')
|
?.filter(x => x.role == 'write' || x.role == 'admin')
|
||||||
?.map(fld => ({
|
?.map(fld => ({
|
||||||
text: fld.name,
|
text: fld.name,
|
||||||
onClick: () => {
|
onClick: () => {
|
||||||
apiCall('cloud/move-connection-cloud', { conid: data._id, folid: fld.folid });
|
apiCall('cloud/copy-connection-cloud', { conid: data._id, folid: fld.folid });
|
||||||
},
|
},
|
||||||
})),
|
})),
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user