-
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
Add site names on sites-list error notices #483
Add site names on sites-list error notices #483
Conversation
4185e66
to
de1c371
Compare
numberOfSites: logs.length | ||
} | ||
}; | ||
var sampleLog = logs[ 0 ], |
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.
this could be a const
de1c371
to
9de2f95
Compare
I think this is a good start. Especially when we move to the pill notifications we need to consider to revisit this. I think this is a good stop gap solution. |
args: { | ||
siteName: sampleLog.site.title, | ||
siteNames: sites.join( ', ' ), | ||
numberOfSites: logs.length |
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 think this might need to get changed to sites.length. Since the number of sites might be different from the log. ( I am not 100% sure about )
One minor change but otherwise this looks good to go 👍 |
This is definitely an improvement. Can we have a period at the end of the sentence? |
Just updated the code to include periods at the end of sentences and the suggestion I made. |
cf896e6
to
a1801bc
Compare
…mes-on-error-notices Add site names on sites-list error notices
Until now, each time you got an error message related with your site list that affected more than one site, you only could see that the error were affecting N sites, but not which sites those were.
This PR adds the name of the sites to the error message:
How to test