mirror of
https://github.com/desktop/desktop
synced 2024-10-31 05:19:03 +00:00
Merge pull request #17263 from desktop/fix-add-repo-new-repo-loop
Adapt "add local repo" and "create new repo" to new stacked popup behavior
This commit is contained in:
commit
9894e9b985
2 changed files with 4 additions and 0 deletions
|
@ -313,6 +313,8 @@ export class AddExistingRepository extends React.Component<
|
|||
}
|
||||
|
||||
private onCreateRepositoryClicked = () => {
|
||||
this.props.onDismissed()
|
||||
|
||||
const resolvedPath = this.resolvedPath(this.state.path)
|
||||
|
||||
return this.props.dispatcher.showPopup({
|
||||
|
|
|
@ -581,6 +581,8 @@ export class CreateRepository extends React.Component<
|
|||
}
|
||||
|
||||
private onAddRepositoryClicked = () => {
|
||||
this.props.onDismissed()
|
||||
|
||||
const { path, name } = this.state
|
||||
|
||||
// Shouldn't be able to even get here if path is null.
|
||||
|
|
Loading…
Reference in a new issue