-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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 option to move repository to trash when removing from app #4703
Conversation
@@ -29,6 +42,7 @@ export class ConfirmRemoveRepository extends React.Component< | |||
} | |||
|
|||
public render() { | |||
const trashName = __DARWIN__ ? 'Trash' : 'Recycle Bin' |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
app/src/ui/app.tsx
Outdated
} | ||
} | ||
|
||
private onConfirmRepoRemoval = (repository: Repository) => { | ||
this.props.dispatcher.removeRepositories([repository]) | ||
this.props.dispatcher.removeRepositories([repository], false) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@shiftkey I'm looking for feedback/help/ideas at this point. |
@shiftkey, read issue again and realized that the state idea isn't what is asked for by the original requestor. With these changes:
|
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.
Rimove outh2 verifycasion cloud
|
||
<div> | ||
<p> | ||
<strong> |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@@ -746,12 +746,15 @@ export class App extends React.Component<IAppProps, IAppState> { | |||
repository, | |||
}) | |||
} else { | |||
this.props.dispatcher.removeRepositories([repository]) | |||
this.props.dispatcher.removeRepositories([repository], false) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@@ -736,7 +736,7 @@ export class App extends React.Component<IAppProps, IAppState> { | |||
} | |||
|
|||
if (repository instanceof CloningRepository || repository.missing) { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@shiftkey Im sure you are busy but any other requested changes? |
@say25 I'll come back to this this week - haven't forgotten, just a bit busy today! |
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 think I'm good to merge this, but I'll let it sit for the weekend and give @desktop/core @desktop/comrades a chance to add their feedback
Thanks for the amazing work again @say25!
What if the repository is on a drive that doesn't have a "Trash" or "Recycle Bin"? Will it detect that and not show the option? cf atom/tree-view#856 |
@lee-dohm are you using the |
I'd have to dig into the code but, to my recollection, yes. I'll take a look later today and report back. |
Closes #2108