@trudb/tru-common-lib 0.2.359 → 0.2.360
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.
|
@@ -7743,7 +7743,7 @@ class TruDataGrid {
|
|
|
7743
7743
|
setNoRowsTemplate = () => {
|
|
7744
7744
|
//this.noRowsTemplate = `<span style="font-size:14px;font-weight:bold;">No data found.</span>`;
|
|
7745
7745
|
};
|
|
7746
|
-
applyRelationships = (newEntity) => {
|
|
7746
|
+
applyRelationships = async (newEntity) => {
|
|
7747
7747
|
if (this.entity) {
|
|
7748
7748
|
newEntity[this.config.parentTableRelationshipRefName] = this.entity[this.config.parentTableRefName];
|
|
7749
7749
|
}
|
|
@@ -7751,7 +7751,7 @@ class TruDataGrid {
|
|
|
7751
7751
|
//let parentName = this.entity.constructor.name;
|
|
7752
7752
|
let unassociatedType = this.config.resultConfig.entityManyToManyType;
|
|
7753
7753
|
let ref = this.selectedUnassociatedChoice.value.$;
|
|
7754
|
-
this.dataContext.entityAccess().searchByRefServerOnly(unassociatedType, ref).subscribe((childToAssociate) => {
|
|
7754
|
+
await this.dataContext.entityAccess().searchByRefServerOnly(unassociatedType, ref).subscribe((childToAssociate) => {
|
|
7755
7755
|
if (!childToAssociate)
|
|
7756
7756
|
childToAssociate = this.appEnvironment.globalDataContext?.entityAccess().searchByRefCacheOnly(unassociatedType, ref, true);
|
|
7757
7757
|
if (childToAssociate) {
|
|
@@ -7989,6 +7989,7 @@ class TruDataGrid {
|
|
|
7989
7989
|
this.applyRelationships(newEntity);
|
|
7990
7990
|
this.rowData.push(enhancedEntity);
|
|
7991
7991
|
this.api.applyTransaction({ add: [enhancedEntity], addIndex: 0 });
|
|
7992
|
+
this.api.refreshCells({ force: true });
|
|
7992
7993
|
}
|
|
7993
7994
|
else {
|
|
7994
7995
|
let results;
|