Stay on change screen after deleting draft patch set
Change-Id: I47a4dcb0db20c97a31eabafbd5b2db8f397fd4f5 Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
This commit is contained in:
@@ -614,9 +614,13 @@ class PatchSetComplexDisclosurePanel extends ComplexDisclosurePanel implements O
|
||||
public void onClick(final ClickEvent event) {
|
||||
b.setEnabled(false);
|
||||
PatchUtil.DETAIL_SVC.deleteDraftPatchSet(patchSet.getId(),
|
||||
new GerritCallback<VoidResult>() {
|
||||
public void onSuccess(VoidResult result) {
|
||||
Gerrit.display(PageLinks.MINE);
|
||||
new GerritCallback<ChangeDetail>() {
|
||||
public void onSuccess(final ChangeDetail result) {
|
||||
if (result != null) {
|
||||
changeScreen.update(result);
|
||||
} else {
|
||||
Gerrit.display(PageLinks.MINE);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user