Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit ed8812c

Browse files
committed
Disable accept button while the query is running
1 parent 190d4a9 commit ed8812c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/controllers/create-dialog-controller.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,10 @@ export class BareCreateDialogController extends React.Component {
154154
}
155155

156156
acceptIsEnabled() {
157-
return !this.repoName.isEmpty() && !this.localPath.isEmpty() && !this.sourceRemoteName.isEmpty();
157+
return !this.repoName.isEmpty() &&
158+
!this.localPath.isEmpty() &&
159+
!this.sourceRemoteName.isEmpty() &&
160+
this.props.user !== null;
158161
}
159162

160163
recheckAcceptEnablement() {

0 commit comments

Comments
 (0)