-
Notifications
You must be signed in to change notification settings - Fork 15
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
PP-7843 Stop selecting default option on permission level radios #4148
Conversation
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.
Looks good. Just one thing about an apostrophe.
@@ -60,7 +60,9 @@ async function invite (req, res, next) { | |||
lodash.set(req, 'session.pageData', { invitee }) | |||
res.redirect(303, formatServicePathsFor(paths.service.teamMembers.invite, externalServiceId)) | |||
} else if (!role) { | |||
next(new Error(`Cannot identify role from user input ${roleId}`)) | |||
req.flash('genericError', 'Select the team member\'s permission level') |
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.
If you use a right single quotation mark (that is, ’
instead of '
) then it looks nicer and does not need to be escaped.
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.
Gotcha! Have updated this as above.
package-lock.json
Outdated
@@ -64,7 +64,7 @@ | |||
"chai-arrays": "2.2.0", | |||
"chai-as-promised": "7.1.1", | |||
"cheerio": "1.0.0-rc.12", | |||
"chokidar-cli": "*", |
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 should be excluded unless we’re actually trying to update dependencies.
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.
any reason why we can't update chokidar? I see this change every time I npm i
so it'd be nice to merge this.
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've reverted this back to latest
for the time being as I guess it's not part of the story?
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.
One final thing with the package-lock.json
file and this is good to go.
@@ -128,7 +128,7 @@ | |||
"chai-arrays": "2.2.0", | |||
"chai-as-promised": "7.1.1", | |||
"cheerio": "1.0.0-rc.12", | |||
"chokidar-cli": "latest", |
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 should be *
(what it is on master), not latest
.
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.
Doh...Missed that!
WHAT
checked: true
property from the role-input checkboxes.HOW