MM-26827 Add ShowFullName property (#4106)

* Add ShowFullName property

* Add ShowFullName property to first and last name
This commit is contained in:
shred86 2020-07-14 07:04:21 -07:00 committed by GitHub
parent 6ebcfaa4cd
commit c2be31c644
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 62 deletions

View file

@ -151,6 +151,7 @@ export type Config = {
SendEmailNotifications: string;
SendPushNotifications: string;
ShowEmailAddress: string;
ShowFullName: string;
SiteName: string;
SiteURL: string;
SQLDriverName: string;

View file

@ -136,66 +136,6 @@ exports[`user_profile should match snapshot 1`] = `
}
}
>
<View>
<Text
style={
Array [
Object {
"color": undefined,
"fontSize": 13,
"fontWeight": "600",
"marginBottom": 10,
"marginTop": 25,
"textTransform": "uppercase",
},
null,
]
}
/>
<Text
style={
Array [
Object {
"color": "#3d3c40",
"fontSize": 15,
},
null,
]
}
>
test
</Text>
</View>
<View>
<Text
style={
Array [
Object {
"color": undefined,
"fontSize": 13,
"fontWeight": "600",
"marginBottom": 10,
"marginTop": 25,
"textTransform": "uppercase",
},
null,
]
}
/>
<Text
style={
Array [
Object {
"color": "#3d3c40",
"fontSize": 15,
},
null,
]
}
>
fake
</Text>
</View>
<View>
<Text
style={

View file

@ -291,8 +291,8 @@ export default class UserProfile extends PureComponent {
return (
<View style={style.content}>
{this.buildDisplayBlock('first_name')}
{this.buildDisplayBlock('last_name')}
{this.props.config.ShowFullName === 'true' && this.buildDisplayBlock('first_name')}
{this.props.config.ShowFullName === 'true' && this.buildDisplayBlock('last_name')}
{this.props.config.ShowEmailAddress === 'true' && this.buildDisplayBlock('email')}
{this.buildDisplayBlock('nickname')}
{this.buildDisplayBlock('position')}