mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 10:46:00 +00:00
redis db context menu
This commit is contained in:
@@ -59,6 +59,7 @@
|
||||
};
|
||||
|
||||
const getContextMenu = () => {
|
||||
const driver = $extensions.drivers.find(x => x.engine == data.engine);
|
||||
const config = getCurrentConfig();
|
||||
const handleRefresh = () => {
|
||||
apiCall('server-connections/refresh', { conid: data._id });
|
||||
@@ -146,10 +147,12 @@
|
||||
text: 'Disconnect',
|
||||
onClick: handleDisconnect,
|
||||
},
|
||||
$openedConnections.includes(data._id) && {
|
||||
text: 'Create database',
|
||||
onClick: handleCreateDatabase,
|
||||
},
|
||||
$openedConnections.includes(data._id) &&
|
||||
driver?.supportedCreateDatabase &&
|
||||
!data.isReadOnly && {
|
||||
text: 'Create database',
|
||||
onClick: handleCreateDatabase,
|
||||
},
|
||||
],
|
||||
data.singleDatabase && [
|
||||
{ divider: true },
|
||||
|
||||
Reference in New Issue
Block a user