@esfaenza/admin-module 15.2.10 → 15.2.11
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.
- package/esm2020/lib/components/topact/topact_search.component.mjs +5 -6
- package/fesm2015/esfaenza-admin-module.mjs +4 -5
- package/fesm2015/esfaenza-admin-module.mjs.map +1 -1
- package/fesm2020/esfaenza-admin-module.mjs +4 -5
- package/fesm2020/esfaenza-admin-module.mjs.map +1 -1
- package/lib/components/topact/topact_search.component.d.ts +0 -1
- package/package.json +1 -1
|
@@ -32,7 +32,8 @@ import * as i4 from '@esfaenza/httpservice';
|
|
|
32
32
|
import { HttpParams } from '@angular/common/http';
|
|
33
33
|
import { __decorate } from 'tslib';
|
|
34
34
|
import { autoserialize } from 'cerialize';
|
|
35
|
-
import {
|
|
35
|
+
import { catchError } from 'rxjs/operators';
|
|
36
|
+
import { of } from 'rxjs';
|
|
36
37
|
|
|
37
38
|
class AuditsView extends AppSearch {
|
|
38
39
|
constructor() {
|
|
@@ -794,14 +795,12 @@ class AdmTopActivitiesComponent {
|
|
|
794
795
|
this.searchView = t;
|
|
795
796
|
this.localStorage.setItem("HotSearchTopAct", this.searchView).subscribe();
|
|
796
797
|
}
|
|
797
|
-
|
|
798
|
+
// DirectorInfos anche se per qualche motivo crasha di brutto è comunque non obbligatorio, evito di non caricare la pagina solo perché lui scoppia
|
|
799
|
+
var dirinfos = await this.http.get(Repository.GET_Director_GetInfos, null, null, false).pipe(catchError(_ => of(null))).toPromise();
|
|
798
800
|
this.searchView.searchinprogress = false;
|
|
799
801
|
this.reviewBindings(update, t, dirinfos);
|
|
800
802
|
});
|
|
801
803
|
}
|
|
802
|
-
getDirectorInfos() {
|
|
803
|
-
return this.http.get(Repository.GET_Director_GetInfos).pipe(map(res => { return res; })).toPromise();
|
|
804
|
-
}
|
|
805
804
|
loadNodeDetails(nodeId) {
|
|
806
805
|
this.NodeDetails = null;
|
|
807
806
|
let pars = new HttpParams().set('nodeId', nodeId);
|