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: #596 Redirect on role change to member and update current user state #638

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ralfger
Copy link
Contributor

@ralfger ralfger commented Jan 31, 2025

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes/features)
  • Docs have been added / updated (for bug fixes / features)

What kind of change does this PR introduce?

Bug fix

What is the current behavior?

After changing the current user's role in an organization, the page must be reloaded so the menu can update and hide the relevant tabs.

What is the new behavior?

The user is now instantly redirected after a role change, and the current user role is updated dynamically. The menu updates immediately without requiring a page reload.

Does this PR introduce a breaking change?

No

Other information:

This fix improves user experience by ensuring the menu reflects role changes instantly, maintaining a seamless interaction flow.

@ralfger ralfger force-pushed the fix/redirect-update-on-change-current-user-role branch from 87a8ba1 to 99c452a Compare January 31, 2025 09:59
…-role

# Conflicts:
#	packages/webapp/src/routes/home/home.component.tsx
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.

After changing own role in organisation you need to reload page to remove relevant tabs in menu
1 participant