Commit f5e201c7 authored by ioedeveloper's avatar ioedeveloper

Copy single file at a time.

parent a7b87f91
......@@ -742,9 +742,10 @@ export const FileExplorer = (props: FileExplorerProps) => {
const handleCopyClick = (path: string, type: string) => {
setState(prevState => {
return { ...prevState, copyElement: [...prevState.copyElement, { key: path, type }] }
return { ...prevState, copyElement: [{ key: path, type }] }
})
setCanPaste(true)
// TODO: Reset toaster text after timeout.
toast('Copied to clipboard')
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment