-
Notifications
You must be signed in to change notification settings - Fork 17
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
Feature/new oauth server name #108
Changes from 4 commits
07a50b8
af53443
25b4ed1
0b9595c
6a49e88
e76fb5d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,6 +31,8 @@ class CorsPlugin extends PureComponent { | |
render() { | ||
const { apiSchema, className, edit, name, handlePluginExclude, plugin, pluginName } = this.props; | ||
const b = block(className); | ||
console.error('nem_____', name); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🙈 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. my bad 🥊 |
||
|
||
const optionsTransformer = config => { | ||
return config.map(item => ({ | ||
label: item, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,9 @@ class NewOAuthServerItem extends PureComponent { | |
} | ||
|
||
submit = values => { | ||
this.props.saveOAuthServer(this.props.location.pathname, values); | ||
const transformedValues = transformFormValues(values, true); | ||
|
||
this.props.saveOAuthServer(this.props.location.pathname, transformedValues); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. function composition would be possible here too, if parameter order does not fit we could reorder it There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In this case, it would be a bit harder then it looks like at first. I'll investigate and make separate PR related to this case. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Issue: #110 |
||
} | ||
|
||
renderForm = () => { | ||
|
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 all
upstreams
schemas has the same structure we could declare one and reuse over the code, so we don't repeatThere 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.
totally agree, but here is one but:
in future, this schema, probably, will come from the server side...
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!