Merge "Redirect to dashboard when removing a change"

This commit is contained in:
Andrew Bonventre 2016-08-02 17:43:02 +00:00 committed by Gerrit Code Review
commit 5bc3eef046

View File

@ -396,11 +396,13 @@
case RevisionActions.CHERRYPICK:
page.show(this.changePath(obj._number));
break;
case RevisionActions.DELETE:
page.show(this.changePath(this.changeNum));
break;
case ChangeActions.DELETE:
page.show('/');
case RevisionActions.DELETE:
if (action.__type === ActionType.CHANGE) {
page.show('/');
} else {
page.show(this.changePath(this.changeNum));
}
break;
default:
this.fire('reload-change', null, {bubbles: false});