@trudb/tru-common-lib 0.2.517 → 0.2.519
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.
|
@@ -4858,7 +4858,7 @@ class TruDetailViewBase {
|
|
|
4858
4858
|
}
|
|
4859
4859
|
else {
|
|
4860
4860
|
this.entities.push(newEntity);
|
|
4861
|
-
this.setEntityDisplayValues(this.tableName);
|
|
4861
|
+
this.setEntityDisplayValues(this.tableName, newEntity);
|
|
4862
4862
|
}
|
|
4863
4863
|
};
|
|
4864
4864
|
onCloneEntity = () => {
|
|
@@ -4963,7 +4963,7 @@ class TruDetailViewBase {
|
|
|
4963
4963
|
this.disableNavigationToNextEntity = index === this.entities.length - 1;
|
|
4964
4964
|
this.entity = this.entities[this.navigationIndex];
|
|
4965
4965
|
}
|
|
4966
|
-
setEntityDisplayValues(tableName) {
|
|
4966
|
+
setEntityDisplayValues(tableName, newEntity = null) {
|
|
4967
4967
|
let title = '';
|
|
4968
4968
|
let recordIndex = '?';
|
|
4969
4969
|
let entity = this.entities[this.navigationIndex];
|
|
@@ -4973,7 +4973,7 @@ class TruDetailViewBase {
|
|
|
4973
4973
|
title += 'New Record';
|
|
4974
4974
|
}
|
|
4975
4975
|
else {
|
|
4976
|
-
title += this.entity.HID;
|
|
4976
|
+
title += newEntity ? newEntity.HID : this.entity.HID;
|
|
4977
4977
|
}
|
|
4978
4978
|
recordIndex = (this.navigationIndex + 1).toString();
|
|
4979
4979
|
}
|