diff --git a/.npmignore b/.npmignore index a5d40957..70897c3a 100644 --- a/.npmignore +++ b/.npmignore @@ -6,3 +6,4 @@ !dist/swagger-ui.js.map !dist/swagger-ui.css !dist/swagger-ui.css.map +!dist/oauth2-redirect.html diff --git a/src/core/components/auth/auths.jsx b/src/core/components/auth/auths.jsx index 2110c6cc..f2de4ee2 100644 --- a/src/core/components/auth/auths.jsx +++ b/src/core/components/auth/auths.jsx @@ -41,6 +41,13 @@ export default class Auths extends React.Component { authActions.logout(auths) } + close =(e) => { + e.preventDefault() + let { authActions } = this.props + + authActions.showDefinitions(false) + } + render() { let { definitions, getComponent, authSelectors, errSelectors } = this.props const AuthItem = getComponent("AuthItem") @@ -74,6 +81,7 @@ export default class Auths extends React.Component { }).toArray() }