mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 23:35:59 +00:00
pro tabs
This commit is contained in:
@@ -158,6 +158,7 @@
|
||||
|
||||
function getTabDbName(tab, connectionList) {
|
||||
if (tab.tabComponent == 'ConnectionTab') return 'Connections';
|
||||
if (tab.tabComponent?.startsWith('Admin')) return 'Administration';
|
||||
if (tab.props && tab.props.conid && tab.props.database) return tab.props.database;
|
||||
if (tab.props && tab.props.conid) {
|
||||
const connection = connectionList?.find(x => x._id == tab.props.conid);
|
||||
@@ -174,6 +175,7 @@
|
||||
if (key.startsWith('archive://')) return 'icon archive';
|
||||
if (key.startsWith('server://')) return 'icon server';
|
||||
if (key.startsWith('connections.')) return 'icon connection';
|
||||
if (key.startsWith('admin.')) return 'icon admin';
|
||||
}
|
||||
return 'icon file';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user