mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 00:56:02 +00:00
@@ -17,7 +17,7 @@ export function createQuickExportMenuItems(handler: (fmt: QuickExportDefinition)
|
|||||||
onClick: handler(fmt),
|
onClick: handler(fmt),
|
||||||
})),
|
})),
|
||||||
{ divider: true },
|
{ divider: true },
|
||||||
{
|
isProApp() && {
|
||||||
text: _t('export.currentArchive', { defaultMessage : 'Current archive'}),
|
text: _t('export.currentArchive', { defaultMessage : 'Current archive'}),
|
||||||
onClick: handler({
|
onClick: handler({
|
||||||
extension: 'jsonl',
|
extension: 'jsonl',
|
||||||
|
|||||||
@@ -27,6 +27,7 @@
|
|||||||
import { useConnectionColor } from '../utility/useConnectionColor';
|
import { useConnectionColor } from '../utility/useConnectionColor';
|
||||||
import { apiCall } from '../utility/api';
|
import { apiCall } from '../utility/api';
|
||||||
import { statusBarTabInfo } from '../utility/statusBarStore';
|
import { statusBarTabInfo } from '../utility/statusBarStore';
|
||||||
|
import { isProApp } from '../utility/proTools';
|
||||||
|
|
||||||
$: databaseName = $currentDatabase && $currentDatabase.name;
|
$: databaseName = $currentDatabase && $currentDatabase.name;
|
||||||
$: connection = $currentDatabase && $currentDatabase.connection;
|
$: connection = $currentDatabase && $currentDatabase.connection;
|
||||||
@@ -155,7 +156,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
{#if $currentArchive && $currentArchive != 'default'}
|
{#if isProApp() && $currentArchive && $currentArchive != 'default'}
|
||||||
<div
|
<div
|
||||||
class="item flex clickable"
|
class="item flex clickable"
|
||||||
title="Current archive"
|
title="Current archive"
|
||||||
|
|||||||
@@ -11,6 +11,7 @@
|
|||||||
import PublicCloudWidget from './PublicCloudWidget.svelte';
|
import PublicCloudWidget from './PublicCloudWidget.svelte';
|
||||||
import PrivateCloudWidget from './PrivateCloudWidget.svelte';
|
import PrivateCloudWidget from './PrivateCloudWidget.svelte';
|
||||||
import hasPermission from '../utility/hasPermission';
|
import hasPermission from '../utility/hasPermission';
|
||||||
|
import { isProApp } from '../utility/proTools';
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{#if hasPermission('widgets/database')}
|
{#if hasPermission('widgets/database')}
|
||||||
@@ -22,7 +23,7 @@
|
|||||||
{#if $visibleSelectedWidget == 'history' && hasPermission('widgets/history')}
|
{#if $visibleSelectedWidget == 'history' && hasPermission('widgets/history')}
|
||||||
<HistoryWidget />
|
<HistoryWidget />
|
||||||
{/if}
|
{/if}
|
||||||
{#if $visibleSelectedWidget == 'archive' && hasPermission('widgets/archive')}
|
{#if $visibleSelectedWidget == 'archive' && hasPermission('widgets/archive') && isProApp()}
|
||||||
<ArchiveWidget />
|
<ArchiveWidget />
|
||||||
{/if}
|
{/if}
|
||||||
{#if $visibleSelectedWidget == 'plugins' && hasPermission('widgets/plugins')}
|
{#if $visibleSelectedWidget == 'plugins' && hasPermission('widgets/plugins')}
|
||||||
|
|||||||
@@ -62,7 +62,7 @@
|
|||||||
name: 'history',
|
name: 'history',
|
||||||
title: _t('widgets.queryHistoryAndClosedTabs', { defaultMessage: 'Query history & Closed tabs' }),
|
title: _t('widgets.queryHistoryAndClosedTabs', { defaultMessage: 'Query history & Closed tabs' }),
|
||||||
},
|
},
|
||||||
{
|
isProApp() && {
|
||||||
icon: 'icon archive',
|
icon: 'icon archive',
|
||||||
name: 'archive',
|
name: 'archive',
|
||||||
title: _t('widgets.archive', { defaultMessage: 'Archive (saved tabular data)' }),
|
title: _t('widgets.archive', { defaultMessage: 'Archive (saved tabular data)' }),
|
||||||
|
|||||||
Reference in New Issue
Block a user