Publish: Add length check for new channel names
This commit is contained in:
parent
a9cb0abcc6
commit
6c68eb5e2b
1 changed files with 5 additions and 0 deletions
|
@ -288,6 +288,11 @@ var PublishPage = React.createClass({
|
|||
});
|
||||
},
|
||||
handleCreateChannelClick: function (event) {
|
||||
if (this.state.newChannelName.length < 5) {
|
||||
this.refs.newChannelName.showAdvice('LBRY channel names must be at least 4 characters in length.');
|
||||
return;
|
||||
}
|
||||
|
||||
this.setState({
|
||||
creatingChannel: true,
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue