Link to project dashboard by default for project links
I8874fd59 changed the project link from ChangeScreen2 to go to the project's default dashboard. Make other project links, specifically those using ProjectLink, have the same behavior. This does lose the functionality of clicking a project name in the change table linking to a search for changes in the project matching that change's status. This small loss is outweighed by consistency in behavior across the application. Change-Id: I3f6257ecd8d098a2c3ee9680174817664517da61
This commit is contained in:
@@ -20,7 +20,6 @@ import com.google.gerrit.client.ui.FancyFlexTable;
|
||||
import com.google.gerrit.client.ui.ProjectLink;
|
||||
import com.google.gerrit.common.data.AccountProjectWatchInfo;
|
||||
import com.google.gerrit.reviewdb.client.AccountProjectWatch;
|
||||
import com.google.gerrit.reviewdb.client.Change.Status;
|
||||
import com.google.gwt.event.dom.client.ClickEvent;
|
||||
import com.google.gwt.event.dom.client.ClickHandler;
|
||||
import com.google.gwt.user.client.ui.CheckBox;
|
||||
@@ -126,7 +125,7 @@ public class MyWatchesTable extends FancyFlexTable<AccountProjectWatchInfo> {
|
||||
|
||||
protected void populate(final int row, final AccountProjectWatchInfo info) {
|
||||
final FlowPanel fp = new FlowPanel();
|
||||
fp.add(new ProjectLink(info.getProject().getNameKey(), Status.NEW));
|
||||
fp.add(new ProjectLink(info.getProject().getNameKey()));
|
||||
if (info.getWatch().getFilter() != null) {
|
||||
Label filter = new Label(info.getWatch().getFilter());
|
||||
filter.setStyleName(Gerrit.RESOURCES.css().watchedProjectFilter());
|
||||
|
||||
Reference in New Issue
Block a user