mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[task]: dialog validation fix
This commit is contained in:
@@ -259,8 +259,10 @@ public class OpenTaskDialog extends DialogWrapper {
|
||||
if (branchName.isEmpty()) {
|
||||
return new ValidationInfo("Branch name should not be empty", myBranchName);
|
||||
}
|
||||
else if (myVcsTaskHandler != null && !myVcsTaskHandler.isBranchNameValid(branchName)){
|
||||
return new ValidationInfo("Branch name is not valid; check your vcs branch name restrictions.");
|
||||
else if (myVcsTaskHandler != null) {
|
||||
return myVcsTaskHandler.isBranchNameValid(branchName)
|
||||
? null
|
||||
: new ValidationInfo("Branch name is not valid; check your vcs branch name restrictions.");
|
||||
}
|
||||
else if (branchName.contains(" ")) {
|
||||
return new ValidationInfo("Branch name should not contain spaces");
|
||||
|
||||
Reference in New Issue
Block a user