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

Fixes #5146 - Copy string on myshots shows blank #5153

Merged
merged 1 commit into from
Nov 8, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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