mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-30 10:23:57 +00:00
show single schema only if it is default schema
This commit is contained in:
@@ -32,7 +32,8 @@
|
|||||||
$appliedCurrentSchema = selectedSchema;
|
$appliedCurrentSchema = selectedSchema;
|
||||||
} else {
|
} else {
|
||||||
const usedSchemas = Object.keys(countBySchema);
|
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];
|
$appliedCurrentSchema = usedSchemas[0];
|
||||||
} else {
|
} else {
|
||||||
$appliedCurrentSchema = null;
|
$appliedCurrentSchema = null;
|
||||||
@@ -132,6 +133,7 @@
|
|||||||
<InlineButton
|
<InlineButton
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
selectedSchema = null;
|
selectedSchema = null;
|
||||||
|
localStorage.removeItem(valueStorageKey);
|
||||||
}}
|
}}
|
||||||
title="Reset to default"
|
title="Reset to default"
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user