@trudb/tru-common-lib 0.2.364 → 0.2.372
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.
|
@@ -7745,7 +7745,7 @@ class TruDataGrid {
|
|
|
7745
7745
|
};
|
|
7746
7746
|
applyRelationshipsAndUpdateGrid = (newEntity) => {
|
|
7747
7747
|
if (this.entity) {
|
|
7748
|
-
newEntity[this.config.parentTableRelationshipRefName] = this.entity[this.config.parentTableRefName];
|
|
7748
|
+
newEntity.$entity[this.config.parentTableRelationshipRefName] = this.entity[this.config.parentTableRefName];
|
|
7749
7749
|
}
|
|
7750
7750
|
if (this.gridType === TruDataGridTypes.DetailManyToMany) {
|
|
7751
7751
|
//let parentName = this.entity.constructor.name;
|
|
@@ -7919,6 +7919,7 @@ class TruDataGrid {
|
|
|
7919
7919
|
};
|
|
7920
7920
|
loadGridData = (entities) => {
|
|
7921
7921
|
this.rowData = entities.map(this.enhanceRowDataForEntity, entities);
|
|
7922
|
+
this.rowCount = 'Rows: ' + (entities ? entities.length : 0);
|
|
7922
7923
|
this.cdr.markForCheck();
|
|
7923
7924
|
};
|
|
7924
7925
|
loadManyToManyGridData = (associatedEntities, associatableEntities, initalLoad) => {
|