Added help text to username, nickname, and fullname
Этот коммит содержится в:
@@ -40,6 +40,7 @@ export default class UserSettings extends React.Component {
|
|||||||
user={this.state.user}
|
user={this.state.user}
|
||||||
activeSection={this.props.activeSection}
|
activeSection={this.props.activeSection}
|
||||||
updateSection={this.props.updateSection}
|
updateSection={this.props.updateSection}
|
||||||
|
updateTab={this.props.updateTab}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
@@ -86,4 +87,4 @@ UserSettings.propTypes = {
|
|||||||
activeSection: React.PropTypes.string,
|
activeSection: React.PropTypes.string,
|
||||||
updateSection: React.PropTypes.func,
|
updateSection: React.PropTypes.func,
|
||||||
updateTab: React.PropTypes.func
|
updateTab: React.PropTypes.func
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -267,6 +267,27 @@ export default class UserSettingsGeneralTab extends React.Component {
|
|||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
function notifClick(e) {
|
||||||
|
e.preventDefault();
|
||||||
|
this.updateSection('');
|
||||||
|
this.props.updateTab('notifications');
|
||||||
|
}
|
||||||
|
|
||||||
|
let notifLink = (
|
||||||
|
<a
|
||||||
|
href='#'
|
||||||
|
onClick={notifClick.bind(this)} >
|
||||||
|
Notifications
|
||||||
|
</a>
|
||||||
|
);
|
||||||
|
|
||||||
|
let extraInfo = (
|
||||||
|
<span>
|
||||||
|
By default, you will receive mention notifications when someone types your first name.
|
||||||
|
Go to {notifLink} settings to change this default.
|
||||||
|
</span>
|
||||||
|
);
|
||||||
|
|
||||||
nameSection = (
|
nameSection = (
|
||||||
<SettingItemMax
|
<SettingItemMax
|
||||||
title='Full Name'
|
title='Full Name'
|
||||||
@@ -278,6 +299,7 @@ export default class UserSettingsGeneralTab extends React.Component {
|
|||||||
this.updateSection('');
|
this.updateSection('');
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
}.bind(this)}
|
}.bind(this)}
|
||||||
|
extraInfo={extraInfo}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
@@ -326,6 +348,13 @@ export default class UserSettingsGeneralTab extends React.Component {
|
|||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
let extraInfo = (
|
||||||
|
<span>
|
||||||
|
Use Nickname for a name you might be called that is different from your first name and user name.
|
||||||
|
This is most often used when two or more people have similar sounding names and usernames.
|
||||||
|
</span>
|
||||||
|
);
|
||||||
|
|
||||||
nicknameSection = (
|
nicknameSection = (
|
||||||
<SettingItemMax
|
<SettingItemMax
|
||||||
title='Nickname'
|
title='Nickname'
|
||||||
@@ -337,6 +366,7 @@ export default class UserSettingsGeneralTab extends React.Component {
|
|||||||
this.updateSection('');
|
this.updateSection('');
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
}.bind(this)}
|
}.bind(this)}
|
||||||
|
extraInfo={extraInfo}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
@@ -375,6 +405,8 @@ export default class UserSettingsGeneralTab extends React.Component {
|
|||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
let extraInfo = (<span>Pick something easy for teammates to recognize and recall.</span>);
|
||||||
|
|
||||||
usernameSection = (
|
usernameSection = (
|
||||||
<SettingItemMax
|
<SettingItemMax
|
||||||
title='Username'
|
title='Username'
|
||||||
@@ -386,6 +418,7 @@ export default class UserSettingsGeneralTab extends React.Component {
|
|||||||
this.updateSection('');
|
this.updateSection('');
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
}.bind(this)}
|
}.bind(this)}
|
||||||
|
extraInfo={extraInfo}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
@@ -524,5 +557,6 @@ export default class UserSettingsGeneralTab extends React.Component {
|
|||||||
UserSettingsGeneralTab.propTypes = {
|
UserSettingsGeneralTab.propTypes = {
|
||||||
user: React.PropTypes.object,
|
user: React.PropTypes.object,
|
||||||
updateSection: React.PropTypes.func,
|
updateSection: React.PropTypes.func,
|
||||||
|
updateTab: React.PropTypes.func,
|
||||||
activeSection: React.PropTypes.string
|
activeSection: React.PropTypes.string
|
||||||
};
|
};
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user