diff --git a/webapp/packages/plugin-data-export/src/DataExportMenuService.ts b/webapp/packages/plugin-data-export/src/DataExportMenuService.ts index 080b4f72e8..fb064587cd 100644 --- a/webapp/packages/plugin-data-export/src/DataExportMenuService.ts +++ b/webapp/packages/plugin-data-export/src/DataExportMenuService.ts @@ -104,6 +104,10 @@ export class DataExportMenuService { containerNodePath: source.options.containerNodePath, resultId: result.id, sourceName: source.options.query, + filter: { + constraints: source.options.constraints, + where: source.options.whereFilter, + }, }); } } diff --git a/webapp/packages/plugin-data-export/src/Dialog/DataExportController.ts b/webapp/packages/plugin-data-export/src/Dialog/DataExportController.ts index ef724434d8..fbc9e3c0ab 100644 --- a/webapp/packages/plugin-data-export/src/Dialog/DataExportController.ts +++ b/webapp/packages/plugin-data-export/src/Dialog/DataExportController.ts @@ -51,9 +51,9 @@ export class DataExportController implements IInitializableController, IDestruct private isDistructed = false; constructor( - private dataExportService: DataExportService, - private notificationService: NotificationService, - private commonDialogService: CommonDialogService + private readonly dataExportService: DataExportService, + private readonly notificationService: NotificationService, + private readonly commonDialogService: CommonDialogService ) { makeObservable(this, { step: observable, @@ -87,6 +87,7 @@ export class DataExportController implements IInitializableController, IDestruct { processorId: this.processor.id, processorProperties: this.processorProperties, + filter: this.context.filter, } ); this.close(); diff --git a/webapp/packages/plugin-data-export/src/IExportContext.ts b/webapp/packages/plugin-data-export/src/IExportContext.ts index d1c45eea90..9827fa0109 100644 --- a/webapp/packages/plugin-data-export/src/IExportContext.ts +++ b/webapp/packages/plugin-data-export/src/IExportContext.ts @@ -6,10 +6,13 @@ * you may not use this file except in compliance with the License. */ +import type { SqlDataFilter } from '@cloudbeaver/core-sdk'; + export interface IExportContext { connectionId: string; contextId?: string; containerNodePath?: string; resultId?: string | null; sourceName?: string; + filter?: SqlDataFilter; }