Add new notify type that allows watching of new patch sets
Users can now watch the creation of new patch sets. They get notified if a new patch set is uploaded, but also if a rebase is done from the WebUI or the commit message is edited in the WebUI. Change-Id: Ieabc4c00d2b185e5b452ac43706cb0fdd9d87f77 Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
This commit is contained in:
committed by
Shawn Pearce
parent
81f2be8cef
commit
1121475d1c
@@ -51,13 +51,15 @@ public class MyWatchesTable extends FancyFlexTable<AccountProjectWatchInfo> {
|
||||
fmt.setRowSpan(0, 2, 2);
|
||||
DOM.setElementProperty(fmt.getElement(0, 3), "align", "center");
|
||||
|
||||
fmt.setColSpan(0, 3, 3);
|
||||
fmt.setColSpan(0, 3, 4);
|
||||
table.setText(1, 0, Util.C.watchedProjectColumnNewChanges());
|
||||
table.setText(1, 1, Util.C.watchedProjectColumnAllComments());
|
||||
table.setText(1, 2, Util.C.watchedProjectColumnSubmittedChanges());
|
||||
table.setText(1, 1, Util.C.watchedProjectColumnNewPatchSets());
|
||||
table.setText(1, 2, Util.C.watchedProjectColumnAllComments());
|
||||
table.setText(1, 3, Util.C.watchedProjectColumnSubmittedChanges());
|
||||
fmt.addStyleName(1, 0, Gerrit.RESOURCES.css().dataHeader());
|
||||
fmt.addStyleName(1, 1, Gerrit.RESOURCES.css().dataHeader());
|
||||
fmt.addStyleName(1, 2, Gerrit.RESOURCES.css().dataHeader());
|
||||
fmt.addStyleName(1, 3, Gerrit.RESOURCES.css().dataHeader());
|
||||
}
|
||||
|
||||
public void deleteChecked() {
|
||||
@@ -135,8 +137,9 @@ public class MyWatchesTable extends FancyFlexTable<AccountProjectWatchInfo> {
|
||||
table.setWidget(row, 2, fp);
|
||||
|
||||
addNotifyButton(AccountProjectWatch.NotifyType.NEW_CHANGES, info, row, 3);
|
||||
addNotifyButton(AccountProjectWatch.NotifyType.ALL_COMMENTS, info, row, 4);
|
||||
addNotifyButton(AccountProjectWatch.NotifyType.SUBMITTED_CHANGES, info, row, 5);
|
||||
addNotifyButton(AccountProjectWatch.NotifyType.NEW_PATCHSETS, info, row, 4);
|
||||
addNotifyButton(AccountProjectWatch.NotifyType.ALL_COMMENTS, info, row, 5);
|
||||
addNotifyButton(AccountProjectWatch.NotifyType.SUBMITTED_CHANGES, info, row, 6);
|
||||
|
||||
final FlexCellFormatter fmt = table.getFlexCellFormatter();
|
||||
fmt.addStyleName(row, 1, Gerrit.RESOURCES.css().iconCell());
|
||||
@@ -144,6 +147,7 @@ public class MyWatchesTable extends FancyFlexTable<AccountProjectWatchInfo> {
|
||||
fmt.addStyleName(row, 3, Gerrit.RESOURCES.css().dataCell());
|
||||
fmt.addStyleName(row, 4, Gerrit.RESOURCES.css().dataCell());
|
||||
fmt.addStyleName(row, 5, Gerrit.RESOURCES.css().dataCell());
|
||||
fmt.addStyleName(row, 6, Gerrit.RESOURCES.css().dataCell());
|
||||
|
||||
setRowItem(row, info);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user