Skip to content

Commit 6d93361

Browse files
committed
Change context menu to always show all parents,
and put a check mark by the current parent.
1 parent 929350e commit 6d93361

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

web/main.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2705,7 +2705,8 @@ class GitGraphView {
27052705

27062706
return {
27072707
title: escapeHtml('[' + parentIndex + '] ' + abbrevCommit(parent) + (subject ? ': ' + subject : '')),
2708-
visible: parentIndex !== currentParentIndex,
2708+
visible: true,
2709+
checked: parentIndex === currentParentIndex,
27092710
onClick: () => {
27102711
this.loadCommitDetails(expandedCommit.commitElem!, parentIndex);
27112712
}
@@ -2719,7 +2720,7 @@ class GitGraphView {
27192720
elem: document.getElementById('cdvChooseParent')!
27202721
};
27212722

2722-
contextMenu.show([contextMenuItems], false, target, event, this.isCdvDocked() ? document.body : this.viewElem);
2723+
contextMenu.show([contextMenuItems], true, target, event, this.isCdvDocked() ? document.body : this.viewElem);
27232724
});
27242725

27252726
if (codeReviewPossible) {

0 commit comments

Comments
 (0)