diff options
author | Pat Lathem <patl@codero.com> | 2016-01-13 14:32:02 -0600 |
---|---|---|
committer | Pat Lathem <patl@codero.com> | 2016-01-13 14:32:02 -0600 |
commit | 0ac9e9d9a755658740d49de84387bd11b626fba1 (patch) | |
tree | 0f377739bf9061966c5b00e758afd6c770ea7734 /web | |
parent | a316cdaa655c1b1ab2046e8b511677661e0bd246 (diff) | |
download | chat-0ac9e9d9a755658740d49de84387bd11b626fba1.tar.gz chat-0ac9e9d9a755658740d49de84387bd11b626fba1.tar.bz2 chat-0ac9e9d9a755658740d49de84387bd11b626fba1.zip |
Show correct channel URL in channel info modal
Diffstat (limited to 'web')
-rw-r--r-- | web/react/components/channel_info_modal.jsx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/web/react/components/channel_info_modal.jsx b/web/react/components/channel_info_modal.jsx index 109dcb129..72c7c3daa 100644 --- a/web/react/components/channel_info_modal.jsx +++ b/web/react/components/channel_info_modal.jsx @@ -1,6 +1,7 @@ // Copyright (c) 2015 Mattermost, Inc. All Rights Reserved. // See License.txt for license information. +import * as Utils from '../utils/utils.jsx'; const Modal = ReactBootstrap.Modal; export default class ChannelInfoModal extends React.Component { @@ -15,6 +16,8 @@ export default class ChannelInfoModal extends React.Component { }; } + const channelURL = Utils.getShortenedTeamURL() + channel.name; + return ( <Modal show={this.props.show} @@ -30,7 +33,7 @@ export default class ChannelInfoModal extends React.Component { </div> <div className='row form-group'> <div className='col-sm-3 info__label'>{'Channel URL:'}</div> - <div className='col-sm-9'>{channel.name}</div> + <div className='col-sm-9'>{channelURL}</div> </div> <div className='row'> <div className='col-sm-3 info__label'>{'Channel ID:'}</div> |