-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reader: make the unauthorized error message appear below the "Oops!" heading #2680
Conversation
@@ -16,13 +16,13 @@ var PostUnavailable = React.createClass( { | |||
|
|||
componentWillMount: function() { | |||
this.errors = { | |||
403: this.translate( 'This is a private site. You’re following the site, but not currently a member. Please request membership to display these posts in Reader.' ), | |||
'unauthorized': this.translate( 'This is a private site. You’re following the site, but not currently a member. Please request membership to display these posts in Reader.' ), |
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.
While we're here, maybe change this to "this post" from "these posts" since the error applies to one post?
Also fix up the wording a bit and default to the default message if a code is passed, but we don't have a message for it.
1bdccf2
to
01c870b
Compare
👍 will ship it. I made some minor changes to make it even more robust and fixed the wording. Still your commit though. congrats @designsimply, nice work! |
Thanks! /ht @bluefuton for help and explanations along the way too!! |
…ader-views Reader: make the unauthorized error message appear below the "Oops!" heading
Nice one, Sheri! 🎉 |
This pull request seeks to make the unauthorized error message appear below the "Oops!" heading as it should when someone tries to view a post in the Reader for a private site they are not authorized to see.
See 8753-gh-calypso-pre-oss for testing steps.
Before:
After:
or with
"reader/full-errors": true
(i.e. local Calypso install)