From a19a516f151f190eed69654b950a7cacf47b4ba4 Mon Sep 17 00:00:00 2001 From: Joseph Izang Date: Mon, 29 Apr 2024 12:24:44 +0100 Subject: [PATCH] rename parameter for moveSilently. cleanup comment --- .../workspace/src/lib/components/file-explorer.tsx | 9 ++++----- .../workspace/src/lib/components/flat-tree-drop.tsx | 1 - 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/libs/remix-ui/workspace/src/lib/components/file-explorer.tsx b/libs/remix-ui/workspace/src/lib/components/file-explorer.tsx index 7530cbf2c0..d9618e8453 100644 --- a/libs/remix-ui/workspace/src/lib/components/file-explorer.tsx +++ b/libs/remix-ui/workspace/src/lib/components/file-explorer.tsx @@ -364,17 +364,16 @@ export const FileExplorer = (props: FileExplorerProps) => { } } - const handleFolderMove = async (dest: string, src: string) => { - if (await moveFolderIsAllowed(src, dest) === false) return - const folders = filesSelected && filesSelected.length > 0 && filesSelected.join(' ') - console.log(folders) + const handleFolderMove = async (dest: string, copySrc: string) => { + if (await moveFolderIsAllowed(copySrc, dest) === false) return + const src = filesSelected && filesSelected.length > 0 ? filesSelected.join(' ') : '' try { props.modal( intl.formatMessage({ id: 'filePanel.moveFile' }), intl.formatMessage({ id: 'filePanel.moveFileMsg1' }, { src, dest }), intl.formatMessage({ id: 'filePanel.yes' }), - () => props.dispatchMoveFolder(src, dest), + () => props.dispatchMoveFolder(copySrc, dest), intl.formatMessage({ id: 'filePanel.cancel' }), () => { } ) diff --git a/libs/remix-ui/workspace/src/lib/components/flat-tree-drop.tsx b/libs/remix-ui/workspace/src/lib/components/flat-tree-drop.tsx index 11300819ad..acbc74a075 100644 --- a/libs/remix-ui/workspace/src/lib/components/flat-tree-drop.tsx +++ b/libs/remix-ui/workspace/src/lib/components/flat-tree-drop.tsx @@ -50,7 +50,6 @@ export const FlatTreeDrop = (props: FlatTreeDropProps) => { event.preventDefault() const target = await getEventTarget(event) - // const items = buildMultiSelectedItemProfiles(target) const filePaths = [] let dragDestination: any