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

fix: OAuth clients limit links open in current tab #4127

Merged
merged 1 commit into from
Sep 18, 2023

Conversation

taratatach
Copy link
Member

When the connected OAuth clients limit is reached on a Cozy, we
display a blocking modal during the OAuth flow when trying to connect
yet another client.
In this situation we want the links displayed in the modal (i.e. to
manage the connected clients or subscribe to another offer) to open in
a new tab as this modal can be displayed in apps windows without any
navigation means.

However, when the modal is displayed when navigating in the Cozy in a
browser because the limit has been exceeded, we don't have this
limitation so the links should open in the same tab.

@taratatach taratatach requested a review from a team as a code owner September 15, 2023 16:02
@taratatach taratatach self-assigned this Sep 15, 2023
@taratatach taratatach force-pushed the fix/fetch-premium-links-status-from-config branch from 90549c4 to 441477a Compare September 18, 2023 15:03
Base automatically changed from fix/fetch-premium-links-status-from-config to master September 18, 2023 15:11
@taratatach taratatach force-pushed the fix/open-oauth-exceeded-links-in-same-tab-in-web branch from b5d4192 to fa80364 Compare September 18, 2023 15:13
@taratatach taratatach changed the title fix: OAuth lients limit links open in current tab fix: OAuth clients limit links open in current tab Sep 18, 2023
  When the connected OAuth clients limit is reached on a Cozy, we
  display a blocking modal during the OAuth flow when trying to connect
  yet another client.
  In this situation we want the links displayed in the modal (i.e. to
  manage the connected clients or subscribe to another offer) to open in
  a new tab as this modal can be displayed in apps windows without any
  navigation means.

  However, when the modal is displayed when navigating in the Cozy in a
  browser because the limit has been exceeded, we don't have this
  limitation so the links should open in the same tab.
@taratatach taratatach force-pushed the fix/open-oauth-exceeded-links-in-same-tab-in-web branch from fa80364 to d191661 Compare September 18, 2023 15:42
@taratatach taratatach merged commit 5c3c6ab into master Sep 18, 2023
6 checks passed
@taratatach taratatach deleted the fix/open-oauth-exceeded-links-in-same-tab-in-web branch September 18, 2023 15:54
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.

2 participants