mirror of
https://github.com/go-gitea/gitea.git
synced 2026-09-08 22:13:26 +09:00
Backport #38033 Signed-off-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: yszl666 <941131649@qq.com> Co-authored-by: dzf <douzf@sparkspacetech.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
co-authored by
yszl666
dzf
wxiaoguang
parent
337fa5a950
commit
62c61aa8ce
@@ -32,6 +32,8 @@ const onItemClick = (e: MouseEvent) => {
|
|||||||
// - the user didn't press any special key like "Ctrl+Click" (which may have custom browser behavior)
|
// - the user didn't press any special key like "Ctrl+Click" (which may have custom browser behavior)
|
||||||
// - the editor/commit form isn't dirty (a full page reload shows a confirmation dialog if the form contains unsaved changes)
|
// - the editor/commit form isn't dirty (a full page reload shows a confirmation dialog if the form contains unsaved changes)
|
||||||
if (!isPlainClick(e) || shouldTriggerAreYouSure()) return;
|
if (!isPlainClick(e) || shouldTriggerAreYouSure()) return;
|
||||||
|
// submodules (commit entry mode) point to external repos, let the browser handle navigation normally
|
||||||
|
if (props.item.entryMode === 'commit') return;
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
if (props.item.entryMode === 'tree') doLoadChildren();
|
if (props.item.entryMode === 'tree') doLoadChildren();
|
||||||
store.navigateTreeView(props.item.fullPath);
|
store.navigateTreeView(props.item.fullPath);
|
||||||
|
|||||||
Reference in New Issue
Block a user