Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
Fixes #5146 - Copy string on myshots shows blank (#5153)
Browse files Browse the repository at this point in the history
  • Loading branch information
punamdahiya authored and jaredhirsch committed Nov 8, 2018
1 parent 99341b4 commit 7c58bb1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions locales/en-US/server.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ shotPageShareButton =
.title = Share
shotPageCopyButton =
.title = Copy image to clipboard
shotPageCopyActionLabel = Copy
shotPageCopied = Copied
shotPageShareFacebook =
.title = Share on Facebook
Expand Down
4 changes: 2 additions & 2 deletions server/src/share-buttons.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,10 @@ class ShareButtonPanel extends React.Component {
value={ this.props.shot.viewUrl }
onClick={ this.onClickInputField.bind(this) }
onChange={ function() {} /* react gives a warning otherwise */ } />
<Localized id={ this.state.copy === "copy" ? "shotPageCopy" : "shotPageCopied" }>
<Localized id={ this.state.copy === "copy" ? "shotPageCopyActionLabel" : "shotPageCopied" }>
<button
className="button secondary copy-toggle"
onClick={ this.onClickCopyButton.bind(this) }></button>
onClick={ this.onClickCopyButton.bind(this) }>Copy</button>
</Localized>
</div>
<Localized id="shotPagePrivacyMessage">
Expand Down

0 comments on commit 7c58bb1

Please sign in to comment.