diff options
author | Asaad Mahmood <asaad@spinpunch.com> | 2016-03-08 15:07:43 +0500 |
---|---|---|
committer | Asaad Mahmood <asaad@spinpunch.com> | 2016-03-08 15:07:43 +0500 |
commit | cc453a048d50e57802bab9363b59c2189143b784 (patch) | |
tree | cbd409ec59ad48c40b84337db9a4cf3a063e4915 /web/react/components/get_link_modal.jsx | |
parent | 81ccfca2bfc91779d7bf00dbccb6f932d285a87c (diff) | |
download | chat-cc453a048d50e57802bab9363b59c2189143b784.tar.gz chat-cc453a048d50e57802bab9363b59c2189143b784.tar.bz2 chat-cc453a048d50e57802bab9363b59c2189143b784.zip |
Multiple UI Improvements
Diffstat (limited to 'web/react/components/get_link_modal.jsx')
-rw-r--r-- | web/react/components/get_link_modal.jsx | 23 |
1 files changed, 9 insertions, 14 deletions
diff --git a/web/react/components/get_link_modal.jsx b/web/react/components/get_link_modal.jsx index 6a5c3b588..3309d690c 100644 --- a/web/react/components/get_link_modal.jsx +++ b/web/react/components/get_link_modal.jsx @@ -41,8 +41,6 @@ export default class GetLinkModal extends React.Component { } render() { - const userCreationEnabled = global.window.mm_config.EnableUserCreation === 'true'; - let helpText = null; if (this.props.helpText) { helpText = ( @@ -55,7 +53,7 @@ export default class GetLinkModal extends React.Component { } let copyLink = null; - if (userCreationEnabled && document.queryCommandSupported('copy')) { + if (document.queryCommandSupported('copy')) { copyLink = ( <button data-copy-btn='true' @@ -71,17 +69,14 @@ export default class GetLinkModal extends React.Component { ); } - let linkText = null; - if (userCreationEnabled) { - linkText = ( - <textarea - className='form-control no-resize min-height' - readOnly='true' - ref='textarea' - value={this.props.link} - /> - ); - } + const linkText = ( + <textarea + className='form-control no-resize min-height' + readOnly='true' + ref='textarea' + value={this.props.link} + /> + ); var copyLinkConfirm = null; if (this.state.copiedLink) { |