Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
f5e201c7
Commit
f5e201c7
authored
May 19, 2021
by
ioedeveloper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Copy single file at a time.
parent
a7b87f91
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
file-explorer.tsx
libs/remix-ui/file-explorer/src/lib/file-explorer.tsx
+2
-1
No files found.
libs/remix-ui/file-explorer/src/lib/file-explorer.tsx
View file @
f5e201c7
...
...
@@ -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'
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment