From c2be31c644f408578d0bafaeebb59bd12a6999e4 Mon Sep 17 00:00:00 2001
From: shred86 <32663154+shred86@users.noreply.github.com>
Date: Tue, 14 Jul 2020 07:04:21 -0700
Subject: [PATCH] MM-26827 Add ShowFullName property (#4106)
* Add ShowFullName property
* Add ShowFullName property to first and last name
---
app/mm-redux/types/config.ts | 1 +
.../__snapshots__/user_profile.test.js.snap | 60 -------------------
app/screens/user_profile/user_profile.js | 4 +-
3 files changed, 3 insertions(+), 62 deletions(-)
diff --git a/app/mm-redux/types/config.ts b/app/mm-redux/types/config.ts
index c13b9f3ed..50aa1f498 100644
--- a/app/mm-redux/types/config.ts
+++ b/app/mm-redux/types/config.ts
@@ -151,6 +151,7 @@ export type Config = {
SendEmailNotifications: string;
SendPushNotifications: string;
ShowEmailAddress: string;
+ ShowFullName: string;
SiteName: string;
SiteURL: string;
SQLDriverName: string;
diff --git a/app/screens/user_profile/__snapshots__/user_profile.test.js.snap b/app/screens/user_profile/__snapshots__/user_profile.test.js.snap
index d0778a0d8..83fa7f51f 100644
--- a/app/screens/user_profile/__snapshots__/user_profile.test.js.snap
+++ b/app/screens/user_profile/__snapshots__/user_profile.test.js.snap
@@ -136,66 +136,6 @@ exports[`user_profile should match snapshot 1`] = `
}
}
>
-
-
-
- test
-
-
-
-
-
- fake
-
-
- {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')}