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),
})),
{ divider: true },
{
isProApp() && {
text: _t('export.currentArchive', { defaultMessage : 'Current archive'}),
onClick: handler({
extension: 'jsonl',

View File

@@ -27,6 +27,7 @@
import { useConnectionColor } from '../utility/useConnectionColor';
import { apiCall } from '../utility/api';
import { statusBarTabInfo } from '../utility/statusBarStore';
import { isProApp } from '../utility/proTools';
$: databaseName = $currentDatabase && $currentDatabase.name;
$: connection = $currentDatabase && $currentDatabase.connection;
@@ -155,7 +156,7 @@
</div>
</div>
{/if}
{#if $currentArchive && $currentArchive != 'default'}
{#if isProApp() && $currentArchive && $currentArchive != 'default'}
<div
class="item flex clickable"
title="Current archive"

View File

@@ -11,6 +11,7 @@
import PublicCloudWidget from './PublicCloudWidget.svelte';
import PrivateCloudWidget from './PrivateCloudWidget.svelte';
import hasPermission from '../utility/hasPermission';
import { isProApp } from '../utility/proTools';
</script>
{#if hasPermission('widgets/database')}
@@ -22,7 +23,7 @@
{#if $visibleSelectedWidget == 'history' && hasPermission('widgets/history')}
<HistoryWidget />
{/if}
{#if $visibleSelectedWidget == 'archive' && hasPermission('widgets/archive')}
{#if $visibleSelectedWidget == 'archive' && hasPermission('widgets/archive') && isProApp()}
<ArchiveWidget />
{/if}
{#if $visibleSelectedWidget == 'plugins' && hasPermission('widgets/plugins')}

View File

@@ -62,7 +62,7 @@
name: 'history',
title: _t('widgets.queryHistoryAndClosedTabs', { defaultMessage: 'Query history & Closed tabs' }),
},
{
isProApp() && {
icon: 'icon archive',
name: 'archive',
title: _t('widgets.archive', { defaultMessage: 'Archive (saved tabular data)' }),