summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
author=Corey Hulen <corey@hulen.com>2015-09-29 11:21:27 -0700
committer=Corey Hulen <corey@hulen.com>2015-09-29 11:21:27 -0700
commit80d1acab228b4fb8c16c0f81be8bd6655b30f8ca (patch)
treead89319256ac9422c33f8876b950ec754a4f2e6e /web
parent0e028d04e2d6442ee15e46c08d26686a2c2f7201 (diff)
downloadchat-80d1acab228b4fb8c16c0f81be8bd6655b30f8ca.tar.gz
chat-80d1acab228b4fb8c16c0f81be8bd6655b30f8ca.tar.bz2
chat-80d1acab228b4fb8c16c0f81be8bd6655b30f8ca.zip
PLT-472 switching field ordering.
Diffstat (limited to 'web')
-rw-r--r--web/react/components/admin_console/gitlab_settings.jsx27
1 files changed, 14 insertions, 13 deletions
diff --git a/web/react/components/admin_console/gitlab_settings.jsx b/web/react/components/admin_console/gitlab_settings.jsx
index a0c024f08..f57affb90 100644
--- a/web/react/components/admin_console/gitlab_settings.jsx
+++ b/web/react/components/admin_console/gitlab_settings.jsx
@@ -40,7 +40,6 @@ export default class GitLabSettings extends React.Component {
config.GitLabSettings.Allow = React.findDOMNode(this.refs.Allow).checked;
config.GitLabSettings.Secret = React.findDOMNode(this.refs.Secret).value.trim();
config.GitLabSettings.Id = React.findDOMNode(this.refs.Id).value.trim();
- //config.GitLabSettings.Scope = React.findDOMNode(this.refs.Scope).value.trim();
config.GitLabSettings.AuthEndpoint = React.findDOMNode(this.refs.AuthEndpoint).value.trim();
config.GitLabSettings.TokenEndpoint = React.findDOMNode(this.refs.TokenEndpoint).value.trim();
config.GitLabSettings.UserApiEndpoint = React.findDOMNode(this.refs.UserApiEndpoint).value.trim();
@@ -121,44 +120,44 @@ export default class GitLabSettings extends React.Component {
<div className='form-group'>
<label
className='control-label col-sm-4'
- htmlFor='Secret'
+ htmlFor='Id'
>
- {'Secret:'}
+ {'Id:'}
</label>
<div className='col-sm-8'>
<input
type='text'
className='form-control'
- id='Secret'
- ref='Secret'
+ id='Id'
+ ref='Id'
placeholder='Ex "jcuS8PuvcpGhpgHhlcpT1Mx42pnqMxQY"'
- defaultValue={this.props.config.GitLabSettings.Secret}
+ defaultValue={this.props.config.GitLabSettings.Id}
onChange={this.handleChange}
disabled={!this.state.Allow}
/>
- <p className='help-text'>{'Obtain this value via the instructions above for logging into GitLab.'}</p>
+ <p className='help-text'>{'Obtain this value via the instructions above for logging into GitLab'}</p>
</div>
</div>
<div className='form-group'>
<label
className='control-label col-sm-4'
- htmlFor='Id'
+ htmlFor='Secret'
>
- {'Id:'}
+ {'Secret:'}
</label>
<div className='col-sm-8'>
<input
type='text'
className='form-control'
- id='Id'
- ref='Id'
+ id='Secret'
+ ref='Secret'
placeholder='Ex "jcuS8PuvcpGhpgHhlcpT1Mx42pnqMxQY"'
- defaultValue={this.props.config.GitLabSettings.Id}
+ defaultValue={this.props.config.GitLabSettings.Secret}
onChange={this.handleChange}
disabled={!this.state.Allow}
/>
- <p className='help-text'>{'Obtain this value via the instructions above for logging into GitLab'}</p>
+ <p className='help-text'>{'Obtain this value via the instructions above for logging into GitLab.'}</p>
</div>
</div>
@@ -250,6 +249,8 @@ export default class GitLabSettings extends React.Component {
}
}
+
+//config.GitLabSettings.Scope = React.findDOMNode(this.refs.Scope).value.trim();
// <div className='form-group'>
// <label
// className='control-label col-sm-4'