From ea0dcb44210226fb4fc8cbf165b73d06d70dad7d Mon Sep 17 00:00:00 2001 From: Reed Garmsen Date: Wed, 23 Sep 2015 13:21:35 -0700 Subject: Small fix for react key warning --- web/react/components/user_settings/custom_theme_chooser.jsx | 7 +++++-- web/react/components/user_settings/premade_theme_chooser.jsx | 5 ++++- 2 files changed, 9 insertions(+), 3 deletions(-) (limited to 'web/react/components/user_settings') diff --git a/web/react/components/user_settings/custom_theme_chooser.jsx b/web/react/components/user_settings/custom_theme_chooser.jsx index 44630a318..c680d75d1 100644 --- a/web/react/components/user_settings/custom_theme_chooser.jsx +++ b/web/react/components/user_settings/custom_theme_chooser.jsx @@ -53,9 +53,12 @@ export default class CustomThemeChooser extends React.Component { const elements = []; let colors = ''; - Constants.THEME_ELEMENTS.forEach((element) => { + Constants.THEME_ELEMENTS.forEach((element, index) => { elements.push( -
+
+
this.props.updateTheme(premadeTheme)} -- cgit v1.2.3-1-g7c22 From a59f8def8c6fa2bc87e3dc0ee9ff5a3caf157c4a Mon Sep 17 00:00:00 2001 From: hmhealey Date: Thu, 24 Sep 2015 10:58:06 -0400 Subject: Added help text to notification settings to say which browsers support them --- web/react/components/user_settings/user_settings_notifications.jsx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'web/react/components/user_settings') diff --git a/web/react/components/user_settings/user_settings_notifications.jsx b/web/react/components/user_settings/user_settings_notifications.jsx index 8d364cde7..ba14f019f 100644 --- a/web/react/components/user_settings/user_settings_notifications.jsx +++ b/web/react/components/user_settings/user_settings_notifications.jsx @@ -265,9 +265,12 @@ export default class NotificationsTab extends React.Component { e.preventDefault(); }.bind(this); + const extraInfo = {'Desktop notifications are available on Firefox, Safari, and Chrome.'}; + desktopSection = ( {'Desktop notification sounds are available on Firefox, Safari, Chrome, Internet Explorer, and Edge.'}; + soundSection = ( Date: Thu, 24 Sep 2015 21:05:21 +0500 Subject: plt-298 - Improving UI for webhooks --- .../user_settings/manage_incoming_hooks.jsx | 65 +++++++++++----------- 1 file changed, 31 insertions(+), 34 deletions(-) (limited to 'web/react/components/user_settings') diff --git a/web/react/components/user_settings/manage_incoming_hooks.jsx b/web/react/components/user_settings/manage_incoming_hooks.jsx index df089a403..12c041c7f 100644 --- a/web/react/components/user_settings/manage_incoming_hooks.jsx +++ b/web/react/components/user_settings/manage_incoming_hooks.jsx @@ -107,23 +107,23 @@ export default class ManageIncomingHooks extends React.Component { this.state.hooks.forEach((hook) => { const c = ChannelStore.get(hook.channel_id); hooks.push( -
-
- - {'URL: '}{Utils.getWindowLocationOrigin() + '/hooks/' + hook.id} - -
- +
+
+
+ {'URL: '}{Utils.getWindowLocationOrigin() + '/hooks/' + hook.id} +
+
{'Channel: '}{c.name} - -
- - {'Remove'} - +
+
); }); @@ -134,41 +134,38 @@ export default class ManageIncomingHooks extends React.Component { } else if (hooks.length > 0) { displayHooks = hooks; } else { - displayHooks = ; + displayHooks = ; } const existingHooks = ( -
- -
+
+ {displayHooks}
); return ( -
+
-
-
+
-
{serverError} - - {'Add'} - +
{existingHooks}
-- cgit v1.2.3-1-g7c22 From b03d8610de3b4e475c168522bc78e9ef857e64fb Mon Sep 17 00:00:00 2001 From: JoramWilander Date: Fri, 25 Sep 2015 08:43:06 -0400 Subject: Fix acconut settings being scrolled to bottom when opened. --- web/react/components/user_settings/user_settings_appearance.jsx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'web/react/components/user_settings') diff --git a/web/react/components/user_settings/user_settings_appearance.jsx b/web/react/components/user_settings/user_settings_appearance.jsx index 7617f04d1..4372069e7 100644 --- a/web/react/components/user_settings/user_settings_appearance.jsx +++ b/web/react/components/user_settings/user_settings_appearance.jsx @@ -81,6 +81,8 @@ export default class UserSettingsAppearance extends React.Component { $('#user_settings').off('hidden.bs.modal', this.handleClose); this.props.updateTab('general'); + $('.ps-container.modal-body').scrollTop(0); + $('.ps-container.modal-body').perfectScrollbar('update'); $('#user_settings').modal('hide'); }, (err) => { -- cgit v1.2.3-1-g7c22 From 9d1dddb7f4cd6ee9682bb48d88f5f0271a72dcba Mon Sep 17 00:00:00 2001 From: Asaad Mahmood Date: Fri, 25 Sep 2015 22:44:36 +0500 Subject: plt-366 - Adding Windows 8 theme --- web/react/components/user_settings/manage_incoming_hooks.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web/react/components/user_settings') diff --git a/web/react/components/user_settings/manage_incoming_hooks.jsx b/web/react/components/user_settings/manage_incoming_hooks.jsx index 12c041c7f..1bbfbd162 100644 --- a/web/react/components/user_settings/manage_incoming_hooks.jsx +++ b/web/react/components/user_settings/manage_incoming_hooks.jsx @@ -134,7 +134,7 @@ export default class ManageIncomingHooks extends React.Component { } else if (hooks.length > 0) { displayHooks = hooks; } else { - displayHooks = ; + displayHooks = ; } const existingHooks = ( -- cgit v1.2.3-1-g7c22