@esfaenza/admin-module 11.2.42 → 11.2.43

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.
@@ -1919,25 +1919,29 @@
1919
1919
  this.POSTGetItems(this.backend + Repository.POST_Adm_GetDynamicViewData);
1920
1920
  };
1921
1921
  AdmDynamicViewsComponent.prototype.POSTGetItems = function (url) {
1922
- var _this = this;
1923
- if (!this.searchView.filtername) {
1924
- this.badSearch = true;
1925
- esTable.AppSearch.reset(this.searchView);
1926
- return;
1927
- }
1928
- else
1929
- this.badSearch = false;
1930
- // Per force-resettare l'estable
1931
- if (this.currentName != this.searchView.filtername) {
1932
- this.currentName = this.searchView.filtername;
1933
- this.searchView = null;
1934
- }
1935
- this.searchView = new DynamicViewsView();
1936
- this.searchView.filtername = this.currentName;
1937
- this.http.post(url, this.searchView).subscribe(function (t) {
1938
- _this.searchView = t;
1939
- _this.searchView.searchinprogress = false;
1940
- _this.localStorage.setItem("HotDinamitato", _this.searchView).subscribe();
1922
+ return __awaiter(this, void 0, void 0, function () {
1923
+ var _this = this;
1924
+ return __generator(this, function (_a) {
1925
+ if (!this.searchView.filtername) {
1926
+ this.badSearch = true;
1927
+ esTable.AppSearch.reset(this.searchView);
1928
+ return [2 /*return*/];
1929
+ }
1930
+ else
1931
+ this.badSearch = false;
1932
+ // Per force-resettare l'estable
1933
+ if (this.currentName != this.searchView.filtername) {
1934
+ this.currentName = this.searchView.filtername;
1935
+ this.searchView = new DynamicViewsView();
1936
+ this.searchView.filtername = this.currentName;
1937
+ }
1938
+ this.http.post(url, this.searchView).subscribe(function (t) {
1939
+ _this.searchView = t;
1940
+ _this.searchView.searchinprogress = false;
1941
+ _this.localStorage.setItem("HotDinamitato", _this.searchView).subscribe();
1942
+ });
1943
+ return [2 /*return*/];
1944
+ });
1941
1945
  });
1942
1946
  };
1943
1947
  return AdmDynamicViewsComponent;