mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-05-03 21:03:59 +00:00
cloud account in statusbar
This commit is contained in:
@@ -216,7 +216,7 @@
|
|||||||
$cloudConnectionsStore[data.conid] &&
|
$cloudConnectionsStore[data.conid] &&
|
||||||
!$cloudConnectionsStore[data.conid].singleDatabase &&
|
!$cloudConnectionsStore[data.conid].singleDatabase &&
|
||||||
$openedConnections.includes(data.conid)}
|
$openedConnections.includes(data.conid)}
|
||||||
getIsExpanded={data => $expandedConnections.includes(data.conid) && !data.singleDatabase}
|
getIsExpanded={data => $expandedConnections.includes(data.conid)}
|
||||||
setIsExpanded={(data, value) => {
|
setIsExpanded={(data, value) => {
|
||||||
expandedConnections.update(old => (value ? [...old, data.conid] : old.filter(x => x != data.conid)));
|
expandedConnections.update(old => (value ? [...old, data.conid] : old.filter(x => x != data.conid)));
|
||||||
}}
|
}}
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
import {
|
import {
|
||||||
activeTabId,
|
activeTabId,
|
||||||
appUpdateStatus,
|
appUpdateStatus,
|
||||||
|
cloudSigninTokenHolder,
|
||||||
currentArchive,
|
currentArchive,
|
||||||
currentDatabase,
|
currentDatabase,
|
||||||
currentThemeDefinition,
|
currentThemeDefinition,
|
||||||
@@ -154,7 +155,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
{#if $currentArchive}
|
{#if $currentArchive && $currentArchive != 'default'}
|
||||||
<div
|
<div
|
||||||
class="item flex clickable"
|
class="item flex clickable"
|
||||||
title="Current archive"
|
title="Current archive"
|
||||||
@@ -184,6 +185,13 @@
|
|||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
|
{#if $cloudSigninTokenHolder?.email}
|
||||||
|
<div class="item">
|
||||||
|
<FontIcon icon="icon cloud" padRight />
|
||||||
|
{$cloudSigninTokenHolder?.email}
|
||||||
|
</div>
|
||||||
|
{/if}
|
||||||
|
|
||||||
{#if $appUpdateStatus}
|
{#if $appUpdateStatus}
|
||||||
<div class="item">
|
<div class="item">
|
||||||
<FontIcon icon={$appUpdateStatus.icon} padRight />
|
<FontIcon icon={$appUpdateStatus.icon} padRight />
|
||||||
|
|||||||
Reference in New Issue
Block a user