From 887d205b1fbb3188331a324ba59b7ec187a2d772 Mon Sep 17 00:00:00 2001 From: hmhealey Date: Tue, 27 Oct 2015 10:32:13 -0400 Subject: Renamed Channel.Description to Channel.Header on the client --- web/react/components/channel_header.jsx | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'web/react/components/channel_header.jsx') diff --git a/web/react/components/channel_header.jsx b/web/react/components/channel_header.jsx index d66777cc6..39f283746 100644 --- a/web/react/components/channel_header.jsx +++ b/web/react/components/channel_header.jsx @@ -110,11 +110,11 @@ export default class ChannelHeader extends React.Component { bSize='large' placement='bottom' className='description' - onMouseOver={() => this.refs.descriptionOverlay.show()} - onMouseOut={() => this.refs.descriptionOverlay.hide()} + onMouseOver={() => this.refs.headerOverlay.show()} + onMouseOut={() => this.refs.headerOverlay.hide()} > ); @@ -144,7 +144,7 @@ export default class ChannelHeader extends React.Component { if (isDirect) { dropdownContents.push(
  • - Set Channel Description... + Set Channel Header...
  • ); @@ -216,7 +216,7 @@ export default class ChannelHeader extends React.Component { dropdownContents.push(
  • - Set {channelTerm} Description... + Set {channelTerm} Header...
  • ); @@ -336,12 +336,12 @@ export default class ChannelHeader extends React.Component { trigger={['hover', 'focus']} placement='bottom' overlay={popoverContent} - ref='descriptionOverlay' + ref='headerOverlay' >
    -- cgit v1.2.3-1-g7c22 From 019bf6a7fed85138a6a3be6ef70fbb994be49abe Mon Sep 17 00:00:00 2001 From: hmhealey Date: Tue, 27 Oct 2015 12:34:21 -0400 Subject: Added ability to see/edit channel purpose in the client --- web/react/components/channel_header.jsx | 156 ++++++++++++++++++-------------- 1 file changed, 90 insertions(+), 66 deletions(-) (limited to 'web/react/components/channel_header.jsx') diff --git a/web/react/components/channel_header.jsx b/web/react/components/channel_header.jsx index 39f283746..101fd85e5 100644 --- a/web/react/components/channel_header.jsx +++ b/web/react/components/channel_header.jsx @@ -11,6 +11,7 @@ const TextFormatting = require('../utils/text_formatting.jsx'); const Utils = require('../utils/utils.jsx'); const MessageWrapper = require('./message_wrapper.jsx'); const PopoverListMembers = require('./popover_list_members.jsx'); +const EditChannelPurposeModal = require('./edit_channel_purpose_modal.jsx'); const AppDispatcher = require('../dispatcher/app_dispatcher.jsx'); const Constants = require('../utils/constants.jsx'); @@ -27,7 +28,9 @@ export default class ChannelHeader extends React.Component { this.handleLeave = this.handleLeave.bind(this); this.searchMentions = this.searchMentions.bind(this); - this.state = this.getStateFromStores(); + const state = this.getStateFromStores(); + state.showEditChannelPurposeModal = false; + this.state = state; } getStateFromStores() { return { @@ -232,6 +235,20 @@ export default class ChannelHeader extends React.Component { ); + dropdownContents.push( +
  • + this.setState({showEditChannelPurposeModal: true})} + > + Set {channelTerm} Purpose... + +
  • + ); dropdownContents.push(
  • - - - -
    -
    +
    + + + + + + + - - - - - -
    +
    +
    + + {channelTitle} + + +
      + {dropdownContents} +
    +
    + +
    + +
    +
    + + + - -
    - -
    -
    - - - -
    + + + + + this.setState({showEditChannelPurposeModal: false})} + channel={channel} + /> +
    ); } } -- cgit v1.2.3-1-g7c22