Merge pull request #2559 from influxdata/multitenancy_fix_add_spaces_to_org_create_rebased
Allow new Organization names to include spacespull/10616/head
commit
3247269129
|
@ -28,7 +28,7 @@ class OrganizationsTableRowNew extends Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
handleInputChange = e => {
|
handleInputChange = e => {
|
||||||
this.setState({name: e.target.value.trim()})
|
this.setState({name: e.target.value})
|
||||||
}
|
}
|
||||||
|
|
||||||
handleInputFocus = e => {
|
handleInputFocus = e => {
|
||||||
|
@ -39,7 +39,7 @@ class OrganizationsTableRowNew extends Component {
|
||||||
const {onCreateOrganization} = this.props
|
const {onCreateOrganization} = this.props
|
||||||
const {name, defaultRole} = this.state
|
const {name, defaultRole} = this.state
|
||||||
|
|
||||||
onCreateOrganization({name, defaultRole})
|
onCreateOrganization({name: name.trim(), defaultRole})
|
||||||
}
|
}
|
||||||
|
|
||||||
handleChooseDefaultRole = role => {
|
handleChooseDefaultRole = role => {
|
||||||
|
|
Loading…
Reference in New Issue