Skip to content

Commit 20cf8a3

Browse files
authored
Merge branch 'master' into master
2 parents 774acb1 + 4f13d6d commit 20cf8a3

File tree

5 files changed

+23
-7
lines changed

5 files changed

+23
-7
lines changed

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@
66
!dist/swagger-ui.js.map
77
!dist/swagger-ui.css
88
!dist/swagger-ui.css.map
9+
!dist/oauth2-redirect.html

src/core/components/auth/auths.jsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,13 @@ export default class Auths extends React.Component {
4141
authActions.logout(auths)
4242
}
4343

44+
close =(e) => {
45+
e.preventDefault()
46+
let { authActions } = this.props
47+
48+
authActions.showDefinitions(false)
49+
}
50+
4451
render() {
4552
let { definitions, getComponent, authSelectors, errSelectors } = this.props
4653
const AuthItem = getComponent("AuthItem")
@@ -74,6 +81,7 @@ export default class Auths extends React.Component {
7481
}).toArray()
7582
}
7683
<div className="auth-btn-wrapper">
84+
<Button className="btn modal-btn auth" onClick={ this.close }>Done</Button>
7785
{
7886
nonOauthDefinitions.size === authorizedAuth.size ? <Button className="btn modal-btn auth" onClick={ this.logoutClick }>Logout</Button>
7987
: <Button type="submit" className="btn modal-btn auth authorize">Authorize</Button>

src/core/components/model.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import React, { PureComponent } from "react"
2+
import ImPropTypes from "react-immutable-proptypes"
23
import PropTypes from "prop-types"
34

45
export default class Model extends PureComponent {
56
static propTypes = {
6-
schema: PropTypes.object.isRequired,
7+
schema: ImPropTypes.orderedMap.isRequired,
78
getComponent: PropTypes.func.isRequired,
89
specSelectors: PropTypes.object.isRequired,
910
name: PropTypes.string,

src/core/components/object-model.jsx

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -142,12 +142,13 @@ export default class ObjectModel extends Component {
142142
: <tr>
143143
<td>{ "not ->" }</td>
144144
<td>
145-
{not.map((schema, k) => {
146-
return <div key={k}><Model { ...otherProps } required={ false }
147-
getComponent={ getComponent }
148-
schema={ schema }
149-
depth={ depth + 1 } /></div>
150-
})}
145+
<div>
146+
<Model { ...otherProps }
147+
required={ false }
148+
getComponent={ getComponent }
149+
schema={ not }
150+
depth={ depth + 1 } />
151+
</div>
151152
</td>
152153
</tr>
153154
}

src/polyfills.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,8 @@
33
if(!window.Promise) {
44
require("core-js/fn/promise")
55
}
6+
7+
// Required by IE 11
8+
if(!String.prototype.startsWith) {
9+
require("core-js/es6/string")
10+
}

0 commit comments

Comments
 (0)