mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-20 12:26:01 +00:00
databaseColor=>connectionColor
This commit is contained in:
@@ -16,8 +16,8 @@ export function getConnectionColor(
|
||||
const { database } = dbid;
|
||||
let colorName = useConnectionFallback || !database ? current?.connectionColor : null;
|
||||
const dbConfig = (current?.databases || []).find(x => x.name == database);
|
||||
if (dbConfig?.databaseColor) {
|
||||
colorName = dbConfig.databaseColor;
|
||||
if (dbConfig?.connectionColor) {
|
||||
colorName = dbConfig.connectionColor;
|
||||
}
|
||||
if (!colorName) return undefined;
|
||||
const palettes = themeType == 'dark' ? presetDarkPalettes : presetPalettes;
|
||||
|
||||
Reference in New Issue
Block a user