From 861cc65cffd95c2276833ecf9e003d8b9115c357 Mon Sep 17 00:00:00 2001 From: Charles Capps Date: Fri, 2 Mar 2018 18:40:54 -0800 Subject: [PATCH] improve: add "Close" button to OAuth dialog, rename "Done" button elsewhere (#4212) * Rename "Done" button to "Close", and add "Close" button OAuth dialog * move Close button to the right --- src/core/components/auth/auths.jsx | 2 +- src/core/components/auth/oauth2.jsx | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/core/components/auth/auths.jsx b/src/core/components/auth/auths.jsx index ce159ab3..02e00c33 100644 --- a/src/core/components/auth/auths.jsx +++ b/src/core/components/auth/auths.jsx @@ -81,7 +81,7 @@ export default class Auths extends React.Component { }).toArray() }
- + { nonOauthDefinitions.size === authorizedAuth.size ? : diff --git a/src/core/components/auth/oauth2.jsx b/src/core/components/auth/oauth2.jsx index fa980bac..86e6257b 100644 --- a/src/core/components/auth/oauth2.jsx +++ b/src/core/components/auth/oauth2.jsx @@ -39,6 +39,13 @@ export default class Oauth2 extends React.Component { } } + close = (e) => { + e.preventDefault() + let { authActions } = this.props + + authActions.showDefinitions(false) + } + authorize =() => { let { authActions, errActions, getConfigs, authSelectors } = this.props let configs = getConfigs() @@ -231,6 +238,7 @@ export default class Oauth2 extends React.Component { : ) } +