mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-11 16:05:44 +01:00
Validate banch names
This commit is contained in:
@@ -124,15 +124,13 @@ class BranchForm extends React.Component<Props, State> {
|
||||
|
||||
handleSourceChange = (source: string) => {
|
||||
this.setState({
|
||||
...this.state,
|
||||
source
|
||||
});
|
||||
};
|
||||
|
||||
handleNameChange = (name: string) => {
|
||||
this.setState({
|
||||
nameValidationError: !validator.isNameValid(name),
|
||||
...this.state,
|
||||
nameValidationError: !validator.isBranchValid(name),
|
||||
name
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user