Don't show PatchSetWebLink for parent commits

Parent ancestors are no patch sets of the change, hence the
PatchSetWebLink should not be displayed for them.

Change-Id: I1107fcabc92681831c885ef46779cc95c23c1a33
Signed-off-by: Edwin Kempin <ekempin@google.com>
This commit is contained in:
Edwin Kempin
2016-06-06 16:25:29 +02:00
parent 604de983c7
commit fd6b981437

View File

@@ -191,12 +191,6 @@ class CommitBox extends Composite {
a.setStyleName(style.parentWebLink());
panel.add(a);
}
JsArray<WebLinkInfo> links = c.webLinks();
if (links != null) {
for (WebLinkInfo link : Natives.asList(links)) {
panel.add(link.toAnchor());
}
}
}
private CopyableLabel getCommitLabel(CommitInfo c) {