This commit is contained in:
Yuri Kuznetsov
2023-06-15 10:11:24 +03:00
parent 1613398492
commit 03f2c33601
+2 -5
View File
@@ -3294,7 +3294,7 @@ class DetailRecordView extends BaseRecordView {
/**
* Called after save or cancel. By default, redirects a page. Can be overridden in options.
*
* @param {string} after Name of an action (`save`, `cancel,` etc.) after which #exit is invoked.
* @param {string|'save'|'cancel'|'delete'} after Name of an action after which #exit is invoked.
*/
exit(after) {
if (after) {
@@ -3320,10 +3320,7 @@ class DetailRecordView extends BaseRecordView {
url = this.options.rootUrl || '#' + this.scope;
this.getRouter().navigate(url, {trigger: false});
this.getRouter().dispatch(this.scope, null, {
isReturn: true
});
this.getRouter().dispatch(this.scope, null, {isReturn: true});
return;
}