mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-29 23:53:57 +00:00
fixed show DB
This commit is contained in:
@@ -233,7 +233,7 @@
|
|||||||
|
|
||||||
<style>
|
<style>
|
||||||
.padLeft {
|
.padLeft {
|
||||||
margin-right: 0.25rem;
|
margin-left: 0.25rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.padRight {
|
.padRight {
|
||||||
|
|||||||
@@ -8,8 +8,9 @@
|
|||||||
const currentDb = currentDbArg == getCurrentValueMarker ? getCurrentDatabase() : currentDbArg;
|
const currentDb = currentDbArg == getCurrentValueMarker ? getCurrentDatabase() : currentDbArg;
|
||||||
return (
|
return (
|
||||||
tab.closedTime == null &&
|
tab.closedTime == null &&
|
||||||
(!tab.props?.conid || tab.props?.conid == currentDb?.connection?._id) &&
|
(!tab.props?.conid ||
|
||||||
(!tab.props?.database || tab.props?.database == currentDb?.name)
|
!tab.props?.database ||
|
||||||
|
(tab.props?.conid == currentDb?.connection?._id && tab.props?.database == currentDb?.name))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return tab.closedTime == null;
|
return tab.closedTime == null;
|
||||||
@@ -529,6 +530,9 @@
|
|||||||
<span class="file-name">
|
<span class="file-name">
|
||||||
{tab.title}
|
{tab.title}
|
||||||
</span>
|
</span>
|
||||||
|
{#if $lockedDatabaseMode && tab.props?.conid && tab.props?.conid != $currentDatabase?.connection?._id}
|
||||||
|
<FontIcon icon="img warn" padLeft title="This tab is bound to different server than actual DB" />
|
||||||
|
{/if}
|
||||||
<TabCloseButton unsaved={tab.unsaved} on:click={e => closeTab(tab.tabid)} />
|
<TabCloseButton unsaved={tab.unsaved} on:click={e => closeTab(tab.tabid)} />
|
||||||
</div>
|
</div>
|
||||||
{/each}
|
{/each}
|
||||||
|
|||||||
Reference in New Issue
Block a user