-
Notifications
You must be signed in to change notification settings - Fork 128
Fixes #5146 - Copy string on myshots shows blank #5153
Fixes #5146 - Copy string on myshots shows blank #5153
Conversation
server/src/share-buttons.js
Outdated
@@ -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" ? "shotPageCopyText" : "shotPageCopied" }> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm confused. What was "shotPageCopy" before this PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@flodolo that was for exact same text "Copy" but got removed in a PR that landed for new copy button on shots.
Bringing it back with new id as we still need it on my shots page or can we still use the same id in this case?
locales/en-US/server.ftl
Outdated
@@ -100,6 +100,7 @@ shotPageShareButton = | |||
.title = Share | |||
shotPageCopyButton = | |||
.title = Copy image to clipboard | |||
shotPageCopyText = Copy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
English is unclear (noun or verb?), I'd prefer a different ID to avoid confusion, e.g. shotPageCopyActionLabel (since shotPageCopyButton
is already in use)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a verb, will update with suggested ID
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
efe493f
to
29298c2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WFM from a l10n point of view
No description provided.