diff options
author | Carlos Tadeu Panato Junior <ctadeu@gmail.com> | 2017-06-19 19:46:15 +0200 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2017-06-19 10:46:15 -0700 |
commit | 59088a1687b999e40d7468ad27997d2ec78a294e (patch) | |
tree | 03c5bbfa557b8c0587697f336aa2ff7cabf5fa05 /webapp/components/user_settings | |
parent | e2cc0df2e83d5fd8cf6a23191dc9ffb7c20ca9b0 (diff) | |
download | chat-59088a1687b999e40d7468ad27997d2ec78a294e.tar.gz chat-59088a1687b999e40d7468ad27997d2ec78a294e.tar.bz2 chat-59088a1687b999e40d7468ad27997d2ec78a294e.zip |
[PLT-6452] Remove edit button on mobile, and have the edit icon beside the value, and the value as a link (#6565)
* Remove edit button on mobile, and have the edit icon beside the value, and the value as a link
* update per review
Diffstat (limited to 'webapp/components/user_settings')
-rw-r--r-- | webapp/components/user_settings/user_settings_general/user_settings_general.jsx | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/webapp/components/user_settings/user_settings_general/user_settings_general.jsx b/webapp/components/user_settings/user_settings_general/user_settings_general.jsx index e265754d9..8aeafd60a 100644 --- a/webapp/components/user_settings/user_settings_general/user_settings_general.jsx +++ b/webapp/components/user_settings/user_settings_general/user_settings_general.jsx @@ -50,6 +50,10 @@ const holders = defineMessages({ id: 'user.settings.general.uploadImage', defaultMessage: "Click 'Edit' to upload an image." }, + uploadImageMobile: { + id: 'user.settings.general.mobile.uploadImage', + defaultMessage: 'Click to upload an image.' + }, fullName: { id: 'user.settings.general.fullName', defaultMessage: 'Full Name' @@ -822,6 +826,14 @@ class UserSettingsGeneralTab extends React.Component { defaultMessage="Click 'Edit' to add your full name" /> ); + if (Utils.isMobile()) { + describe = ( + <FormattedMessage + id='user.settings.general.mobile.emptyName' + defaultMessage='Click to add your full name' + /> + ); + } } nameSection = ( @@ -916,6 +928,14 @@ class UserSettingsGeneralTab extends React.Component { defaultMessage="Click 'Edit' to add a nickname" /> ); + if (Utils.isMobile()) { + describe = ( + <FormattedMessage + id='user.settings.general.mobile.emptyNickname' + defaultMessage='Click to add a nickname' + /> + ); + } } nicknameSection = ( @@ -1092,6 +1112,14 @@ class UserSettingsGeneralTab extends React.Component { defaultMessage="Click 'Edit' to add your job title / position" /> ); + if (Utils.isMobile()) { + describe = ( + <FormattedMessage + id='user.settings.general.mobile.emptyPosition' + defaultMessage='Click to add your job title / position' + /> + ); + } } positionSection = ( @@ -1128,6 +1156,9 @@ class UserSettingsGeneralTab extends React.Component { ); } else { let minMessage = formatMessage(holders.uploadImage); + if (Utils.isMobile()) { + minMessage = formatMessage(holders.uploadImageMobile); + } if (user.last_picture_update) { minMessage = ( <FormattedMessage |