MPR advanced exports

This commit is contained in:
Jan Prochazka
2025-10-26 09:33:48 +01:00
parent c741434e3c
commit 864797fc99
4 changed files with 6 additions and 2 deletions

View File

@@ -1,11 +1,12 @@
import type { QuickExportDefinition } from 'dbgate-types';
import { currentArchive, getCurrentArchive, getExtensions } from '../stores';
import hasPermission from './hasPermission';
import { isProApp } from './proTools';
export function createQuickExportMenuItems(handler: (fmt: QuickExportDefinition) => Function, advancedExportMenuItem) {
const extensions = getExtensions();
return [
{
isProApp() && {
text: 'Export advanced...',
...advancedExportMenuItem,
},