Enable ProjectBranchesScreen for the 'All-Projects' project
For the 'All-Projects' project there is a git repository and it has at least the 'refs/meta/config' branch. Enable the ProjectBranchesScreen for the 'All-Projects' project so that the branches can be seen in the WebUI. Change-Id: I371263e53413c22b245c8ee4bee953685c529291 Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
This commit is contained in:
@@ -716,8 +716,7 @@ public class Dispatcher {
|
||||
return new ProjectInfoScreen(k);
|
||||
}
|
||||
|
||||
if (ProjectScreen.BRANCH.equals(panel)
|
||||
&& !k.equals(Gerrit.getConfig().getWildProject())) {
|
||||
if (ProjectScreen.BRANCH.equals(panel)) {
|
||||
return new ProjectBranchesScreen(k);
|
||||
}
|
||||
|
||||
|
||||
@@ -16,7 +16,6 @@ package com.google.gerrit.client.admin;
|
||||
|
||||
import static com.google.gerrit.client.Dispatcher.toProjectAdmin;
|
||||
|
||||
import com.google.gerrit.client.Gerrit;
|
||||
import com.google.gerrit.client.ui.MenuScreen;
|
||||
import com.google.gerrit.reviewdb.client.Project;
|
||||
|
||||
@@ -30,12 +29,8 @@ public abstract class ProjectScreen extends MenuScreen {
|
||||
public ProjectScreen(final Project.NameKey toShow) {
|
||||
name = toShow;
|
||||
|
||||
final boolean isWild = toShow.equals(Gerrit.getConfig().getWildProject());
|
||||
|
||||
link(Util.C.projectAdminTabGeneral(), toProjectAdmin(name, INFO));
|
||||
if (!isWild) {
|
||||
link(Util.C.projectAdminTabBranches(), toProjectAdmin(name, BRANCH));
|
||||
}
|
||||
link(Util.C.projectAdminTabBranches(), toProjectAdmin(name, BRANCH));
|
||||
link(Util.C.projectAdminTabAccess(), toProjectAdmin(name, ACCESS));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user