The Unified and Autonomous Development Platform
Fix branches page bug.
robin shine913fca0e633b
diff --git a/gitop.web/src/main/java/com/pmease/gitop/web/page/repository/source/branches/BranchesPage.html b/gitop.web/src/main/java/com/pmease/gitop/web/page/repository/source/branches/BranchesPage.htmlindex 74f9d588ca..edadc24ea1 100644--- a/gitop.web/src/main/java/com/pmease/gitop/web/page/repository/source/branches/BranchesPage.html+++ b/gitop.web/src/main/java/com/pmease/gitop/web/page/repository/source/branches/BranchesPage.html@@ -32,8 +32,8 @@<wicket:container wicket:id="statbar"></wicket:container></td><td class="actions">- <button wicket:id="comparelink" class="btn btn-default"><i class="icon icon-git-branch-compare"></i> Compare</button>- <span wicket:id="pullname"></span>+ <button wicket:id="compareLink" class="btn btn-default"><i class="icon icon-git-branch-compare"></i> Compare</button>+ <span wicket:id="pullName"></span></td></tr></table>diff --git a/gitop.web/src/main/java/com/pmease/gitop/web/page/repository/source/branches/BranchesPage.java b/gitop.web/src/main/java/com/pmease/gitop/web/page/repository/source/branches/BranchesPage.javaindex a06cd7034d..7efd9f8f90 100644--- a/gitop.web/src/main/java/com/pmease/gitop/web/page/repository/source/branches/BranchesPage.java+++ b/gitop.web/src/main/java/com/pmease/gitop/web/page/repository/source/branches/BranchesPage.java@@ -183,17 +183,17 @@ public class BranchesPage extends RepositoryTabPage {if (request == null) {BookmarkablePageLink<Void> link = new BookmarkablePageLink<Void>(- "comparelink",+ "compareLink",NewRequestPage.class,NewRequestPage.newParams(getRepository(), refName, getBaseBranch()));item.add(link);- item.add(new Label("pullname").setVisibilityAllowed(false));+ item.add(new Label("pullName").setVisibilityAllowed(false));} else {- add(new WebMarkupContainer("comparelink").setVisibilityAllowed(false));+ item.add(new WebMarkupContainer("compareLink").setVisibilityAllowed(false));// TODO: Change this to LINK to pull request- add(new Label("pullname", request.getId()));+ item.add(new Label("pullName", request.getId()));}}});