@trudb/tru-common-lib 0.2.87 → 0.2.88
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3996,10 +3996,7 @@ class TruDetailViewBase {
|
|
|
3996
3996
|
let index = this.entities.indexOf(this.entity);
|
|
3997
3997
|
this.entities.splice(index, 1);
|
|
3998
3998
|
if (!this.entities.length) {
|
|
3999
|
-
|
|
4000
|
-
if (index > -1) {
|
|
4001
|
-
this.view.window.views.splice(index, 1);
|
|
4002
|
-
}
|
|
3999
|
+
this.view.window.goToPreviousView();
|
|
4003
4000
|
}
|
|
4004
4001
|
}
|
|
4005
4002
|
return true;
|
|
@@ -7910,6 +7907,7 @@ class WindowConfig {
|
|
|
7910
7907
|
contextFilters = [];
|
|
7911
7908
|
parentDataContext = null;
|
|
7912
7909
|
parentView = null;
|
|
7910
|
+
goToPreviousView = () => { };
|
|
7913
7911
|
closed = () => { };
|
|
7914
7912
|
destroy = () => {
|
|
7915
7913
|
while (this.unsubscribes.length)
|