-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add duplicate item button #105
base: main
Are you sure you want to change the base?
Conversation
a82b71f
to
35b12bb
Compare
35b12bb
to
4159275
Compare
@@ -210,6 +214,7 @@ export const Application = () => { | |||
{ title: _("Edit properties"), onClick: _editProperties }, | |||
{ title: cockpit.format(_("Rename $0"), selectedContext?.type), onClick: _renameItem }, | |||
{ type: "divider" }, | |||
{ title: cockpit.format(_("Duplicate $0"), selectedContext?.type), onClick: _duplicateItem }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would use the 'Copy to...' label that the nautilus is using and allow the user to select the target directory.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So this should use the FileAutoComplete
component (like in creating link)? Because it shows all files, while we want directories only
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
True, I think the FileAutocomplete component would need extension to support showing only specific type (file vs directory)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but for now it should be fine to introduce this with a plain text input
Closes #99
Errors need to be shown somewhere in the page