-
-
Notifications
You must be signed in to change notification settings - Fork 475
[WIP] Fix #650 Broken back button #897
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
base: main
Are you sure you want to change the base?
Conversation
@adityamudgil2505 Does this add working for back cases with in the settings tab? |
@abhigyank No, it will get back to organisation. |
I am not sure switching back to the organization after navigating a bit in the settings is a behavior that the user would expected. If the back is enabled in settings I suppose the user would then expect it to work with the settings window? I am not sure how the UX would be based on this change. Maybe someone else suggest if this'd be a good behavior. cc @rishig |
@abhigyank As both the ways have their own advantage and the way to solve this issue using both methods is similar. |
6f1d5ff
to
bb39347
Compare
@andersk @abhigyank I updated the code. Now when the user opens the application after installing, then the back button will be disabled. After adding one or more organizations, it will work as what back button has to do. We can also use the back button in settings. The code is very messy, as there are many corner cases.
To handle this, I modify activateTab to add one more parameter which will tell whether we are going in forward direction or backward direction. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@adityamudgil2505 can you please fix the typo and reconsider the name of the getCurrentSettingWindowName()
function as it can be used elsewhere too, afaik.
Otherwise LGTM
bb39347
to
dc5324c
Compare
@abhigyank Is this g2g or some work is left? |
Heads up @adityamudgil2505, we just merged some commits that conflict with the changes your made in this pull request! You can review this repository's recent commits to see where the conflicts occur. Please rebase your feature branch against the |
What's this PR do?
Solve the issue of the broken back button #650 . When someone goes to a setting option, then want to return back to the previous tab of the organization, then the user can do using the back button.
Any background context you want to provide?
This is being solved by adding a new variable that will keep track of the last tab(organization window) before going to the setting and when the user click on the back button then he will move to tab whose value is being stored in the variable.
GIF
You have tested this PR on: