@trudb/tru-common-lib 0.2.228 → 0.2.230
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.
|
@@ -4003,7 +4003,10 @@ class TruDetailViewBase {
|
|
|
4003
4003
|
newEntity[this.view.parentTableRefName] = this.entity[this.view.parentTableRefName];
|
|
4004
4004
|
this.entities.unshift(newEntity);
|
|
4005
4005
|
if (!dataNotification)
|
|
4006
|
-
this.
|
|
4006
|
+
this.setNavigationIndex(0);
|
|
4007
|
+
else {
|
|
4008
|
+
this.setNavigationIndex(this.navigationIndex + 1);
|
|
4009
|
+
}
|
|
4007
4010
|
};
|
|
4008
4011
|
onCloneEntity = () => {
|
|
4009
4012
|
let windowEventArgs = this.desktopManager.addModalWindow(this.tableName, this.tableName, this.tableName, 'TruCloneView', this.entities, this.navigationIndex, this.dataContext, false, false, false);
|
|
@@ -7806,6 +7809,7 @@ class TruDataGrid {
|
|
|
7806
7809
|
});
|
|
7807
7810
|
if (!entityAlreadyInGrid) {
|
|
7808
7811
|
rowNodesToAdd.push(this.enhanceRowDataForEntity(entity));
|
|
7812
|
+
this.rowData.unshift(...rowNodesToAdd);
|
|
7809
7813
|
this.api.applyTransaction({ add: rowNodesToAdd, addIndex: 0 });
|
|
7810
7814
|
}
|
|
7811
7815
|
}
|