Skip to content

TagSpaces is an offline, open source, document manager with tagging support

fix DnD MoveOrCopy for S3 location

sytolk155adcdb1ea6
diff --git a/app/components/dialogs/MoveOrCopyFilesDialog.tsx b/app/components/dialogs/MoveOrCopyFilesDialog.tsx
index 03be37921..a29e0b855 100644
--- a/app/components/dialogs/MoveOrCopyFilesDialog.tsx
+++ b/app/components/dialogs/MoveOrCopyFilesDialog.tsx
@@ -39,7 +39,7 @@ interface Props {
handleCopyFiles: (files: Array<File>) => void;
}
-function MoveCopyFilesDialog(props: Props) {
+function MoveOrCopyFilesDialog(props: Props) {
const { open, onClose, fullScreen } = props;
return (
@@ -96,4 +96,4 @@ function MoveCopyFilesDialog(props: Props) {
);
}
-export default MoveCopyFilesDialog;
+export default MoveOrCopyFilesDialog;
diff --git a/app/containers/MainPage.tsx b/app/containers/MainPage.tsx
index c0b8d8e02..69672a066 100644
--- a/app/containers/MainPage.tsx
+++ b/app/containers/MainPage.tsx
@@ -86,7 +86,7 @@ import { TS } from '-/tagspaces.namespace';
import PageNotification from '-/containers/PageNotification';
import listen from '-/containers/RendererListener';
import { actions as LocationIndexActions } from '-/reducers/location-index';
-import MoveCopyFilesDialog from '-/components/dialogs/MoveOrCopyFilesDialog';
+import MoveOrCopyFilesDialog from '-/components/dialogs/MoveOrCopyFilesDialog';
import PlatformIO from '-/services/platform-facade';
const drawerWidth = 320;
@@ -600,7 +600,7 @@ function MainPage(props: Props) {
keyMap={keyMap}
style={{ height: '100%' }}
>
- <MoveCopyFilesDialog
+ <MoveOrCopyFilesDialog
open={moveCopyDialogOpened !== undefined}
onClose={() => {
setMoveCopyDialogOpened(undefined);
@@ -763,7 +763,7 @@ function MainPage(props: Props) {
<TargetFileBox
accepts={[FILE]}
onDrop={(item: any) => {
- if (AppConfig.isElectron) {
+ if (AppConfig.isElectron && !PlatformIO.haveObjectStoreSupport()) {
setMoveCopyDialogOpened(item.files);
} else {
handleCopyFiles(item.files);