mirror of
https://github.com/dbgate/dbgate
synced 2024-11-07 20:26:23 +00:00
databaseColor=>connectionColor
This commit is contained in:
parent
04901b438d
commit
b448de190d
@ -30,7 +30,7 @@
|
||||
axiosInstance.post('connections/update-database', {
|
||||
conid,
|
||||
database,
|
||||
values: { databaseColor: e.detail },
|
||||
values: { connectionColor: e.detail },
|
||||
});
|
||||
} else {
|
||||
axiosInstance.post('connections/update', {
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user