-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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: Handle side menu navigation correctly #5503
Merged
iamareebjamal
merged 23 commits into
fossasia:development
from
divyamtayal:double-click-5123
Nov 24, 2020
Merged
Changes from 12 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
41a552e
Merge pull request #1 from fossasia/development
ec5b591
Fix Double Click
cb22baf
Merge branch 'development' into double-click-5123
f0f383f
Getting to specific section of the page from diff page
3fa86e5
Merge branch 'double-click-5123' of https://github.com/daretobediffer…
9bc5959
Getting to specific section of the page from diff page-1
514e282
Code Cleanup
a35c4a5
Code Cleanup-1
67641b1
Code Cleanup-2
9f1cd1d
Code Cleanup-3
a49989d
Code Cleanup-4
3fb1573
Merge branch 'development' into double-click-5123
46dbab4
Fix Build
a363907
Fix Build-1
2962501
Merge branch 'development' into double-click-5123
f28ff3d
Merge branch 'development' into double-click-5123
d388e4f
Merge branch 'development' into double-click-5123
15ab28d
Improved code for Double click
33a2221
Merge branch 'development' into double-click-5123
2ad47b8
Update public.js
aceda97
Merge branch 'development' into double-click-5123
3a14a55
go-to Section from diff page
39ce328
fix
iamareebjamal File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Too much waiting. You should not depend on random waits and timeouts. See if
transitionToRoute
returns a promise and then await itThere 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.
@iamareebjamal now what I found is that I can do
but this is not working
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.
This is not even valid JS syntax. Of course it won't work
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.
Make action async and await on transitionToRoute
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.
@iamareebjamal its not working with this also, I have done that only earlier. the function inside then is fired as soon as I click the button not after the next page is rendered
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.
@iamareebjamal OK so should I change the time, or 2sec is ok? and if everything else is fine then I think this is done. Let me know anything to change.
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.
2 sec was not in your first solution.
Read your first solution again
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.
@iamareebjamal So you are talking about my first commit 'Fix Double Click' ? It does not handle going to specific section from diff page but do handle from same function with only one click
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.
I'm talking about first working solution which was setTimeout without delay
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.
@iamareebjamal so sorry But it was always with 2000ms, I never set setTimeout with 0ms.
??