-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use AJAX navigation for default-branch-button
#4631
Use AJAX navigation for default-branch-button
#4631
Conversation
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.
馃帀
Supper-lative! Are there any other Refined elements that would benefit from this attribute? I think most buttons we add on the repo could have that (like |
62479a0
to
b691e5a
Compare
Okay so I found out you can also just add a (truthy) But I'm not sure if I find the time to scan the code to add it to all elements. |
Thanks for the PRs Philipp! |
@@ -132,6 +136,7 @@ async function init(): Promise<false | void> { | |||
<a | |||
className="btn btn-sm btn-outline tooltipped tooltipped-ne" | |||
href={buildRepoURL(`compare/${latestTag}...${defaultBranch}`)} | |||
data-pjax="#repo-content-pjax-container" |
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.
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.
True I totally overlooked that the header is duplicated 馃槄
Fixes #4623
I just took the attribute from the
master
element and it worked 馃槄It is also used for other elements so it seems to be the right way to trigger an AJAX navigation.
Test URLs
https://github.com/vutran/twas/tree/v2.1.2
Screenshot
ajax.mp4
Browser(s) used
Chromium 92.0.4515.107