Commit 6809860c authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg

Minor update to config panel

parent 054c9ef6
......@@ -56,7 +56,9 @@ class Component extends PureComponent {
}
}
actTogglePanel = () => {
actTogglePanel = (e) => {
e.preventDefault()
e.stopPropagation()
if (this.state.overrideToggle === null) {
this.setState({overrideToggle: !(this.props.expanded)})
} else {
......@@ -102,8 +104,10 @@ class Component extends PureComponent {
let expanded = (this.state.overrideToggle === true) || this.props.expanded
return (
<Panel onClick={this.actTogglePanel} header="OAuth Server Configuration" eventKey="2" collapsible={true} expanded={expanded}>
<Panel onClick={this.actTogglePanel} header="Configuration" eventKey="2" collapsible={true} expanded={expanded}>
<form>
<h3>Server configuration</h3>
<h4>OAuth Authorization endpoint</h4>
<FormGroup>
<FormControl id="inputAuthorization" type="text" value={authorizationEndpoint} onChange={this.updateFieldHandler.bind(this)("authorization_endpoint")} />
......@@ -119,6 +123,8 @@ class Component extends PureComponent {
<FormControl id="inputUserinfo" type="text" value={userinfoEndpoint} onChange={this.updateFieldHandler.bind(this)("userinfo_endpoint")} />
</FormGroup>
<h3>Client configuration</h3>
<h4>Client ID</h4>
<FormGroup>
<FormControl id="inputClientid" type="text" bsSize="large" value={clientId} onChange={this.updateFieldHandler.bind(this)("client_id")} />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment