-
Notifications
You must be signed in to change notification settings - Fork 8.8k
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
Add a "Close" button to the OAuth dialog, rename "Done" button elsewhere #4212
Add a "Close" button to the OAuth dialog, rename "Done" button elsewhere #4212
Conversation
I'll rebase against master and rebuild |
8fd90c1
to
0ba5aba
Compare
You might want to look into #4211 I personally do not think there should be "Done" or "Cancel" button |
Sorry @heldersepu, I respectfully disagree. Users find it confusing they have to click the I agree that advertisements and so on typically only have an I wouldn't mind making this configurable, but I think for now we should just make this consistent. It's currently in a zombie state where OAuth is inconsistent with non-OAuth. |
@charlescapps you might want to leave a comment on #4211 |
Ha. Well, we should just make this configurable then. I don't think any one solution is going to make everyone happy. Yeah, I'm fine with a compromise, I think we can fix both of our issues. I'm fine with calling it |
Thanks for pointing out that existing feature request @heldersepu . @hoereth said that renaming it to |
I don't think you need to commit the files under |
2c1ab8a
to
9741c09
Compare
ok @heldersepu whoops, I see that now in |
@charlescapps : thank you very much! :) |
No worries, glad there was an easy compromise. Let me know if there's anything else needed to merge this, @heldersepu . Thanks! |
@heldersepu is there anything else before this can be merged? @hoereth is happy with this as a fix to #4211. Sorry if my initial reply to your comment was a tad much, I was just feeling frustrated because we have to maintain a lot of custom branches of various open source projects. I appreciate you pointing out the related PR so we could find a compromise. I'm also always up for making a feature configurable and off by default when needed. Thanks! |
Looks good to me, this change is very simple... |
thanks @charlescapps! |
In this previous PR #3939, @Minasokoni added a "Done" button to the auth dialog, however this was only included for the non-Oauth authentications. This PR adds a "Close" button for OAuth authentication as well, and renames the button for non-OAuth to "Close".
Per discussion in this feature request (#4211), we agreed to rename the done button to "Close".
Description
The OAuth dialog still didn't have a "Close" button.
This was confusing some of our users, because it's rather odd that you have to click the
x
to close the dialog and keep your authentication. This PR fixes this so that the "Close" button is also present for OAuth dialogs.Motivation and Context
Fully fixes #3537; fixes #4211 as well.
How Has This Been Tested?
I built my changes with
npm run build
and then used the static resources from thedist
folder for one of our Swagger APIs that has anoauth2
type authentication. See screenshots below. The "Close" button works to close the dialog.Screenshots (if appropriate):
Before this PR, OAuth dialog:
After this PR, OAuth dialog:
Checklist
My PR contains...
src/
is unmodified: changes to documentation, CI, metadata, etc.)package.json
)My changes...
Documentation
Automated tests
We could add a Selenium test for clicking the "Done" button but it's not super important.