osl-base-extended 1.0.22 → 1.0.24
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.
|
@@ -2198,7 +2198,7 @@ class OslSetup {
|
|
|
2198
2198
|
dialogMode = 'add';
|
|
2199
2199
|
_dialogRef = null;
|
|
2200
2200
|
get hasForm() {
|
|
2201
|
-
return this.formElements?.length > 0;
|
|
2201
|
+
return this.formElements?.length > 0 || !!this.onAddEditFn;
|
|
2202
2202
|
}
|
|
2203
2203
|
onSearchSetup(event) {
|
|
2204
2204
|
if (this.gridRef)
|
|
@@ -2549,11 +2549,11 @@ class OslAutocompleteLister {
|
|
|
2549
2549
|
this.cd.markForCheck();
|
|
2550
2550
|
if (!res.isSuccessful)
|
|
2551
2551
|
return;
|
|
2552
|
-
this.datasource = res.result;
|
|
2552
|
+
this.datasource = res.result?.data || [];
|
|
2553
2553
|
setTimeout(() => {
|
|
2554
2554
|
this.loader = false;
|
|
2555
2555
|
}, 20);
|
|
2556
|
-
this.recordCount =
|
|
2556
|
+
this.recordCount = res.result?.recordsFiltered;
|
|
2557
2557
|
}
|
|
2558
2558
|
onPageChange(event) {
|
|
2559
2559
|
this.search(event.searchValue, event.page, event.pageSize);
|