Revert "Revert "MPR archive""

This reverts commit ccf075dc65.
This commit is contained in:
SPRINX0\prochazka
2025-12-10 07:48:30 +01:00
parent ccf075dc65
commit de6acfa1ce
4 changed files with 6 additions and 4 deletions

View File

@@ -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',

View File

@@ -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"

View File

@@ -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')}

View File

@@ -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)' }),