mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-20 05:26:00 +00:00
show single schema only if it is default schema
This commit is contained in:
@@ -32,7 +32,8 @@
|
||||
$appliedCurrentSchema = selectedSchema;
|
||||
} else {
|
||||
const usedSchemas = Object.keys(countBySchema);
|
||||
if (usedSchemas.length == 1) {
|
||||
const defaultSchema = findDefaultSchema(schemaList, driver?.dialect);
|
||||
if (usedSchemas.length == 1 && usedSchemas[0] == defaultSchema) {
|
||||
$appliedCurrentSchema = usedSchemas[0];
|
||||
} else {
|
||||
$appliedCurrentSchema = null;
|
||||
@@ -132,6 +133,7 @@
|
||||
<InlineButton
|
||||
on:click={() => {
|
||||
selectedSchema = null;
|
||||
localStorage.removeItem(valueStorageKey);
|
||||
}}
|
||||
title="Reset to default"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user