TagSpaces is an offline, open source, document manager with tagging support
Expand CSV-export to support exporting of the search results (#1951)
Stanimir3ad7b111c1c4
diff --git a/app/perspectives/grid-perspective/components/MainContainer.tsx b/app/perspectives/grid-perspective/components/MainContainer.tsxindex a3f88f89a..b3a998f67 100644--- a/app/perspectives/grid-perspective/components/MainContainer.tsx+++ b/app/perspectives/grid-perspective/components/MainContainer.tsx@@ -507,7 +507,11 @@ function GridPerspective(props: Props) {const handleExportCsvMenu = () => {if (Pro) {- Pro.exportAsCsv.ExportAsCsv(props.directoryContent);+ if (props.selectedEntries && props.selectedEntries.length > 0) {+ Pro.exportAsCsv.ExportAsCsv(props.selectedEntries);+ } else {+ Pro.exportAsCsv.ExportAsCsv(sortedDirContent.current);+ }}};