feat(ui): add "follow rename" to file commit history list (#34994)

Fix #28253

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
Thomas Sayen
2026-06-03 17:40:38 +00:00
committed by GitHub
co-authored by wxiaoguang
parent 735e940a61
commit b2748d7654
17 changed files with 169 additions and 82 deletions
+10
View File
@@ -24,3 +24,13 @@ export function initCommitStatuses() {
});
});
}
export function initCommitFileHistoryFollowRename() {
registerGlobalInitFunc('initCommitHistoryFollowRename', (el: HTMLInputElement) => {
el.addEventListener('change', () => {
const url = new URL(window.location.toString());
url.searchParams.set('follow-rename', `${el.checked}`);
window.location.assign(url.toString());
});
});
}