Merge "Redirect to dashboard when removing a change"
This commit is contained in:
commit
5bc3eef046
@ -396,11 +396,13 @@
|
|||||||
case RevisionActions.CHERRYPICK:
|
case RevisionActions.CHERRYPICK:
|
||||||
page.show(this.changePath(obj._number));
|
page.show(this.changePath(obj._number));
|
||||||
break;
|
break;
|
||||||
case RevisionActions.DELETE:
|
|
||||||
page.show(this.changePath(this.changeNum));
|
|
||||||
break;
|
|
||||||
case ChangeActions.DELETE:
|
case ChangeActions.DELETE:
|
||||||
page.show('/');
|
case RevisionActions.DELETE:
|
||||||
|
if (action.__type === ActionType.CHANGE) {
|
||||||
|
page.show('/');
|
||||||
|
} else {
|
||||||
|
page.show(this.changePath(this.changeNum));
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
this.fire('reload-change', null, {bubbles: false});
|
this.fire('reload-change', null, {bubbles: false});
|
||||||
|
Loading…
Reference in New Issue
Block a user