diff --git a/web/react/components/get_link_modal.jsx b/web/react/components/get_link_modal.jsx index ab6045d2fa..ea22ad0f32 100644 --- a/web/react/components/get_link_modal.jsx +++ b/web/react/components/get_link_modal.jsx @@ -24,13 +24,18 @@ module.exports = React.createClass({ } }, getInitialState: function() { - return { }; + return {copiedLink: false}; }, handleClick: function() { this.setState({copiedLink: true}); }, render: function() { var currentUser = UserStore.getCurrentUser(); + var copyLinkConfirm = null; + + if (this.state.copiedLink) { + copyLinkConfirm =
Link copied to clipboard.
; + } if (currentUser != null) { return ( @@ -49,11 +54,7 @@ module.exports = React.createClass({Link copied to clipboard.
- : - null - } + {copyLinkConfirm}