Skip to content
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

Added Modal for Login Multiaccounts select #237

Merged
merged 2 commits into from
Jul 12, 2023

Conversation

ThePhisch
Copy link
Contributor

Within the login UI, users can select an account, or have one mapped to them. If multiple accounts can be mapped to the given credentials, the new modal will show up, prompting the user to select an account.

To facilitate this, added the optional rucioMultiAccount?: string to AuthViewModel, this is a comma-separated string of the possible account names.

Uses react-modal addon. In order to be able to style the modal and the overlay (overlay ~= the container into which the modal is placed, ie the container it is hovering in) using tailwind, the regex to discover tailwind classes was adapted.

@maany maany added this to the 32.0 milestone Jul 11, 2023
@maany
Copy link
Member

maany commented Jul 11, 2023

Please rebase to see if the react-modal installation works with NodeJS 18 and NodeJS 20 instead :)

@ThePhisch ThePhisch force-pushed the feature-235-multi_accounts_modal branch from dc543f3 to ba0a1a9 Compare July 12, 2023 08:08
Within the login UI, users can select an account, or have one mapped to
them. If multiple accounts can be mapped to the given credentials, the
new modal will show up, prompting the user to select an account.

To facilitate this, added the optional `rucioMultiAccount?: string` to
`AuthViewModel`, this is a comma-separated string of the possible
account names.

Uses `react-modal` addon. In order to be able to style the modal and the
overlay (overlay ~= the container into which the modal is placed, ie the
container it is hovering in) using tailwind, the regex to discover
tailwind classes was adapted.
@ThePhisch ThePhisch force-pushed the feature-235-multi_accounts_modal branch from ba0a1a9 to 67b625e Compare July 12, 2023 08:20
will now check whether the modal shows if multiple accounts are set.
@ThePhisch ThePhisch merged commit 8d3c3e1 into rucio:master Jul 12, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Multiple Accounts Modal for Login Login cannot handle 206 responses
2 participants