summaryrefslogtreecommitdiffstats
path: root/webapp
diff options
context:
space:
mode:
authorEric Sethna <eric@spinpunch.com>2017-03-14 13:54:39 -0600
committerCorey Hulen <corey@hulen.com>2017-03-14 12:54:39 -0700
commit6b208c5f3c84e13a8df206b38b08d6f270eb7d05 (patch)
treef265d16387295f206fbae8722c004b94fb69c149 /webapp
parent7a7b293113b86cfb007ea92dab4eafa7024bd6da (diff)
downloadchat-6b208c5f3c84e13a8df206b38b08d6f270eb7d05.tar.gz
chat-6b208c5f3c84e13a8df206b38b08d6f270eb7d05.tar.bz2
chat-6b208c5f3c84e13a8df206b38b08d6f270eb7d05.zip
Add IDs to Account Settings > General (#5763)
* Add IDs * Add ID for cancel button * Update ID on cancel button
Diffstat (limited to 'webapp')
-rw-r--r--webapp/components/setting_item_max.jsx1
-rw-r--r--webapp/components/user_settings/user_settings_general.jsx5
2 files changed, 6 insertions, 0 deletions
diff --git a/webapp/components/setting_item_max.jsx b/webapp/components/setting_item_max.jsx
index 94aacb481..21fe389a7 100644
--- a/webapp/components/setting_item_max.jsx
+++ b/webapp/components/setting_item_max.jsx
@@ -89,6 +89,7 @@ export default class SettingItemMax extends React.Component {
{clientError}
{submit}
<a
+ id={this.props.title + 'Cancel'}
className='btn btn-sm'
href='#'
onClick={this.props.updateSection}
diff --git a/webapp/components/user_settings/user_settings_general.jsx b/webapp/components/user_settings/user_settings_general.jsx
index 18d79e12c..d558958f0 100644
--- a/webapp/components/user_settings/user_settings_general.jsx
+++ b/webapp/components/user_settings/user_settings_general.jsx
@@ -422,6 +422,7 @@ class UserSettingsGeneralTab extends React.Component {
</label>
<div className='col-sm-7'>
<input
+ id='primaryEmail'
className='form-control'
type='email'
onChange={this.updateEmail}
@@ -443,6 +444,7 @@ class UserSettingsGeneralTab extends React.Component {
</label>
<div className='col-sm-7'>
<input
+ id='confirmEmail'
className='form-control'
type='email'
onChange={this.updateConfirmEmail}
@@ -846,6 +848,7 @@ class UserSettingsGeneralTab extends React.Component {
<label className='col-sm-5 control-label'>{nicknameLabel}</label>
<div className='col-sm-7'>
<input
+ id='nickname'
className='form-control'
type='text'
onChange={this.updateNickname}
@@ -930,6 +933,7 @@ class UserSettingsGeneralTab extends React.Component {
<label className='col-sm-5 control-label'>{usernameLabel}</label>
<div className='col-sm-7'>
<input
+ id='username'
maxLength={Constants.MAX_USERNAME_LENGTH}
className='form-control'
type='text'
@@ -1020,6 +1024,7 @@ class UserSettingsGeneralTab extends React.Component {
<label className='col-sm-5 control-label'>{positionLabel}</label>
<div className='col-sm-7'>
<input
+ id='position'
className='form-control'
type='text'
onChange={this.updatePosition}