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

Start Tab or Authorize issue #51

Open
kentaero opened this issue Dec 18, 2023 · 5 comments
Open

Start Tab or Authorize issue #51

kentaero opened this issue Dec 18, 2023 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@kentaero
Copy link

Describe the bug
hello
I am a novice developer using the BlazorXTabs library.

While using the XTabsAuthorizeRouteView component

I have three questions.

first,
Sometimes, the state does not go from Authorizing state to Authorized state, so you have to press "F5" to refresh.

image

second,
When you move the mouse cursor to the activated Tab Header, the "X" button disappears.
image

third,
If you repeatedly log out and log in, a page other than "Index" will be displayed as the starting page.
image

I can send you the full source if you want.

my email address [email protected]

Thank you

@David-Moreira
Copy link
Owner

It seems like the state is not updating when the authorization happens. I will appreciate the reproducible. Yes. Can you link a github repository?

Also end of year and and all it will take me a while to take a look at it.

@David-Moreira David-Moreira added the bug Something isn't working label Dec 18, 2023
@David-Moreira David-Moreira self-assigned this Dec 18, 2023
@kentaero
Copy link
Author

Hello
github repository link connected

Thank you

@David-Moreira
Copy link
Owner

Hello github repository link connected

Thank you

Hello @kentaero I can't find the repository link.
Where did you leave it?

@David-Moreira
Copy link
Owner

David-Moreira commented Dec 26, 2023

Never mind I found it.

(I removed the database calls so I could test)
Reply to your questions:

  1. You're right, right after login, when the navigation happens, the page is "stuck" on authorizing. I will try to figure out what the problem is. For the meantime a solution is to just modify the Login.razor.cs HandleLogin so it forces a fresh navigation after authentication successfully. navigationManager.NavigateTo("/", forceLoad: true);
    EDIT : I just noticed you have manually imported BlazorXTabs into your project and modified the code, I cannot be giving support to modified code that might behave differently from the original code. I hope you understand. So please take a look at the suggested navigationManager.NavigateTo("/", forceLoad: true); which should solve your issue.

  2. The issue is with a conflicting css from nav.scss. Please adjust the css accordingly.
    image

  3. I could not reproduce this one, logout, back in always goes back to index page. Maybe the fix from 1. will also help you with this one.

@kentaero
Copy link
Author

kentaero commented Jan 2, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants