make topic title required

This commit is contained in:
or-else
2018-12-01 11:34:42 +03:00
parent 486cf2e355
commit 4f70de3aa9
2 changed files with 4 additions and 2 deletions
+2
View File
@@ -216,6 +216,7 @@ class InfoView extends React.Component {
}
handleFullNameUpdate(fn) {
fn = fn.trim();
if (this.state.fullName !== fn) {
this.setState({fullName: fn});
this.props.onTopicDescUpdate(this.props.topic,
@@ -449,6 +450,7 @@ class InfoView extends React.Component {
placeholder={this.state.groupTopic ? "Group name" : <i>Unknown</i>}
readOnly={!this.state.owner}
value={this.state.fullName}
required={true}
onFinished={this.handleFullNameUpdate} /></div>
<div>
<label className="small">