Skip to content

Commit 4f13d6d

Browse files
authored
Merge pull request #3939 from swagger-api/ft/authmodelclosebtn
Auth modal close button addded
2 parents dc29e06 + 1695f65 commit 4f13d6d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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>

0 commit comments

Comments
 (0)