From f74f066a4472ad5ceac379eb3518307b51a18280 Mon Sep 17 00:00:00 2001 From: Asaad Mahmood Date: Wed, 9 Sep 2015 19:42:03 +0500 Subject: MM-1866 - Adding download icon and adding download link for both file title and download icon --- web/react/components/file_attachment.jsx | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'web/react/components') diff --git a/web/react/components/file_attachment.jsx b/web/react/components/file_attachment.jsx index 78693df98..c9aa06a97 100644 --- a/web/react/components/file_attachment.jsx +++ b/web/react/components/file_attachment.jsx @@ -97,6 +97,7 @@ export default class FileAttachment extends React.Component { var filename = this.props.filename; var fileInfo = utils.splitFileLocation(filename); + var fileUrl = utils.getFileUrl(filename); var type = utils.getFileType(fileInfo.ext); var thumbnail; @@ -150,14 +151,25 @@ export default class FileAttachment extends React.Component { {thumbnail}
-
{trimmedFilename} -
+
+ + + {fileInfo.ext.toUpperCase()} {fileSizeString}
-- cgit v1.2.3-1-g7c22 From c5ce2fe933996c718522fb260c7a5a1bf3c63148 Mon Sep 17 00:00:00 2001 From: Asaad Mahmood Date: Wed, 9 Sep 2015 21:26:15 +0500 Subject: MM-1825 - Improving UI for settings --- web/react/components/setting_item_min.jsx | 5 ++++- web/react/components/team_export_tab.jsx | 16 +++++++--------- web/react/components/user_settings_general.jsx | 26 +++++++++++++------------- 3 files changed, 24 insertions(+), 23 deletions(-) (limited to 'web/react/components') diff --git a/web/react/components/setting_item_min.jsx b/web/react/components/setting_item_min.jsx index 098729a4f..d6ccc106c 100644 --- a/web/react/components/setting_item_min.jsx +++ b/web/react/components/setting_item_min.jsx @@ -19,7 +19,10 @@ export default class SettingItemMin extends React.Component { } return ( -
    +
    • {this.props.title}
    • {editButton}
    • {this.props.describe}
    • diff --git a/web/react/components/team_export_tab.jsx b/web/react/components/team_export_tab.jsx index 1bc5abdb1..2914904ad 100644 --- a/web/react/components/team_export_tab.jsx +++ b/web/react/components/team_export_tab.jsx @@ -75,15 +75,13 @@ export default class TeamExportTab extends React.Component {
    • diff --git a/web/react/components/user_settings_general.jsx b/web/react/components/user_settings_general.jsx index f2127ce0c..184534a9a 100644 --- a/web/react/components/user_settings_general.jsx +++ b/web/react/components/user_settings_general.jsx @@ -238,7 +238,7 @@ export default class UserSettingsGeneralTab extends React.Component { key='firstNameSetting' className='form-group' > - +
      - +
      - Notifications + {'Notifications'} ); const extraInfo = ( - By default, you will receive mention notifications when someone types your first name. - Go to {notifLink} settings to change this default. + {'By default, you will receive mention notifications when someone types your first name. '} + {'Go to '} {notifLink} {'settings to change this default.'} ); @@ -351,8 +351,8 @@ export default class UserSettingsGeneralTab extends React.Component { const extraInfo = ( - 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. + {'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.'} ); @@ -406,7 +406,7 @@ export default class UserSettingsGeneralTab extends React.Component {
      ); - const extraInfo = (Pick something easy for teammates to recognize and recall.); + const extraInfo = ({'Pick something easy for teammates to recognize and recall.'}); usernameSection = ( Email is used for notifications, and requires verification if changed.
      ; if (!this.state.emailEnabled) { - helpText =

      Email has been disabled by your system administrator. No notification emails will be sent until it is enabled.
      ; + helpText =
      {'Email has been disabled by your system administrator. No notification emails will be sent until it is enabled.'}
      ; } inputs.push(
      - +
      - +

      - General Settings + {'General Settings'}

      -

      General Settings

      +

      {'General Settings'}

      {nameSection}
      -- cgit v1.2.3-1-g7c22 From 1f5e43b38817b8c6a3b121d6bd4447411e135f5d Mon Sep 17 00:00:00 2001 From: Asaad Mahmood Date: Wed, 9 Sep 2015 22:32:21 +0500 Subject: Adding minor hover changes for settings --- web/react/components/setting_item_min.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'web/react/components') diff --git a/web/react/components/setting_item_min.jsx b/web/react/components/setting_item_min.jsx index d6ccc106c..2c0fdf2f4 100644 --- a/web/react/components/setting_item_min.jsx +++ b/web/react/components/setting_item_min.jsx @@ -12,7 +12,8 @@ export default class SettingItemMin extends React.Component { href='#' onClick={this.props.updateSection} > - Edit + + {'Edit'} ); -- cgit v1.2.3-1-g7c22