SYNC: don't show private cloud for web app

This commit is contained in:
SPRINX0\prochazka
2025-06-13 13:51:33 +02:00
committed by Diflow
parent a1405412a8
commit 01d256eeee
2 changed files with 17 additions and 14 deletions

View File

@@ -116,6 +116,7 @@ module.exports = {
processArgs.runE2eTests ? 'connections-e2etests.jsonl' : 'connections.jsonl' processArgs.runE2eTests ? 'connections-e2etests.jsonl' : 'connections.jsonl'
), ),
supportCloudAutoUpgrade: !!process.env.CLOUD_UPGRADE_FILE, supportCloudAutoUpgrade: !!process.env.CLOUD_UPGRADE_FILE,
allowPrivateCloud: platformInfo.isElectron || !!process.env.ALLOW_DBGATE_PRIVATE_CLOUD,
...currentVersion, ...currentVersion,
}; };

View File

@@ -33,7 +33,7 @@
name: 'database', name: 'database',
title: 'Database connections', title: 'Database connections',
}, },
{ getCurrentConfig().allowPrivateCloud && {
name: 'cloud-private', name: 'cloud-private',
title: 'DbGate Cloud', title: 'DbGate Cloud',
icon: 'icon cloud-private', icon: 'icon cloud-private',
@@ -176,6 +176,7 @@
<FontIcon icon={$lockedDatabaseMode ? 'icon locked-database-mode' : 'icon unlocked-database-mode'} /> <FontIcon icon={$lockedDatabaseMode ? 'icon locked-database-mode' : 'icon unlocked-database-mode'} />
</div> --> </div> -->
{#if getCurrentConfig().allowPrivateCloud}
{#if $cloudSigninTokenHolder} {#if $cloudSigninTokenHolder}
<div <div
class="wrapper" class="wrapper"
@@ -190,6 +191,7 @@
<FontIcon icon="icon cloud-account" /> <FontIcon icon="icon cloud-account" />
</div> </div>
{/if} {/if}
{/if}
<div class="wrapper" on:click={handleSettingsMenu} bind:this={domSettings} data-testid="WidgetIconPanel_settings"> <div class="wrapper" on:click={handleSettingsMenu} bind:this={domSettings} data-testid="WidgetIconPanel_settings">
<FontIcon icon="icon settings" /> <FontIcon icon="icon settings" />