rename parameter for moveSilently. cleanup comment

pull/4767/head
Joseph Izang 6 months ago
parent 85bb0e816d
commit a19a516f15
  1. 9
      libs/remix-ui/workspace/src/lib/components/file-explorer.tsx
  2. 1
      libs/remix-ui/workspace/src/lib/components/flat-tree-drop.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' }),
() => { }
)

@ -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

Loading…
Cancel
Save