From 29db5c8c29c157503b1411c9bb10cf1866baa85c Mon Sep 17 00:00:00 2001 From: nickago Date: Fri, 24 Jul 2015 14:41:42 -0700 Subject: Removed popover on channel name and added ability to set channel descritption for 1-1 channels --- web/react/components/channel_header.jsx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'web') diff --git a/web/react/components/channel_header.jsx b/web/react/components/channel_header.jsx index 7a129f200..76dbe370b 100644 --- a/web/react/components/channel_header.jsx +++ b/web/react/components/channel_header.jsx @@ -153,7 +153,7 @@ module.exports = React.createClass({ if (isDirect) { if (this.state.users.length > 1) { var contact = this.state.users[((this.state.users[0].id === currentId) ? 1 : 0)]; - channelTitle = ; + channelTitle = contact.nickname || contact.username; } } @@ -161,13 +161,13 @@ module.exports = React.createClass({ -- cgit v1.2.3-1-g7c22 From 908888c6853ce66aa11dff4f430781ab6686e096 Mon Sep 17 00:00:00 2001 From: nickago Date: Tue, 28 Jul 2015 08:26:38 -0700 Subject: Added a 'set description' link for private channels --- web/react/components/post_list.jsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'web') diff --git a/web/react/components/post_list.jsx b/web/react/components/post_list.jsx index 8dc5013ca..f9c62bf20 100644 --- a/web/react/components/post_list.jsx +++ b/web/react/components/post_list.jsx @@ -309,12 +309,15 @@ module.exports = React.createClass({ var more_messages =

Beginning of Channel

; + var userStyle = { color: UserStore.getCurrentUser().props.theme } + if (channel != null) { if (order.length > 0 && order.length % Constants.POST_CHUNK_SIZE === 0) { more_messages = Load more messages; } else if (channel.type === 'D') { var teammate = utils.getDirectTeammate(channel.id) + if (teammate) { var teammate_name = teammate.nickname.length > 0 ? teammate.nickname : teammate.username; more_messages = ( @@ -329,6 +332,7 @@ module.exports = React.createClass({ {"This is the start of your private message history with " + teammate_name + "." }
{"Private messages and files shared here are not shown to people outside this area."}

+ Set a description ); } else { @@ -342,7 +346,6 @@ module.exports = React.createClass({ var ui_name = channel.display_name var members = ChannelStore.getCurrentExtraInfo().members; var creator_name = ""; - var userStyle = { color: UserStore.getCurrentUser().props.theme } for (var i = 0; i < members.length; i++) { if (members[i].roles.indexOf('admin') > -1) { -- cgit v1.2.3-1-g7c22
- { !isDirect ?
{channelTitle} + { !isDirect ?
  • View Info
  • { !ChannelStore.isDefault(channel) ? @@ -193,12 +193,14 @@ module.exports = React.createClass({ : null }
+ : + + }
{description}
- : - {channelTitle} - }