@esfaenza/admin-module 15.2.9 → 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/audits/adm_audits.component.mjs +3 -3
- package/esm2020/lib/components/dynamic_views/adm_dynamic_views.component.mjs +4 -4
- package/esm2020/lib/components/enqueues/adm_enq.component.mjs +3 -3
- package/esm2020/lib/components/logs/adm_logs.component.mjs +2 -2
- package/esm2020/lib/components/metrics/metrics_search.component.mjs +4 -4
- package/esm2020/lib/components/profiler/adm_profiler.component.mjs +5 -5
- package/esm2020/lib/components/topact/topact_search.component.mjs +8 -9
- package/esm2020/lib/components/workers/adm_wrk.component.mjs +7 -7
- package/esm2020/lib/models/externals/Repository.mjs +22 -22
- package/fesm2015/esfaenza-admin-module.mjs +49 -50
- package/fesm2015/esfaenza-admin-module.mjs.map +1 -1
- package/fesm2020/esfaenza-admin-module.mjs +49 -50
- package/fesm2020/esfaenza-admin-module.mjs.map +1 -1
- package/lib/components/topact/topact_search.component.d.ts +0 -1
- package/lib/models/externals/Repository.d.ts +21 -21
- package/package.json +1 -1
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
export const Repository = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
2
|
+
GET_Director_ChangeProcessConsumerGroup: "/api/Director/ChangeProcessConsumerGroup",
|
|
3
|
+
GET_Director_ClearAllCaches: "/api/Director/ClearAllCaches",
|
|
4
|
+
GET_Director_GetConsumerGroups: "/api/Director/GetConsumerGroups#cache",
|
|
5
|
+
GET_Director_GetInfos: "/api/Director/GetInfos",
|
|
6
|
+
GET_Director_GetMetrics: "/api/Director/GetMetrics",
|
|
7
|
+
POST_Director_GetMetrics: "/api/Director/GetMetrics",
|
|
8
|
+
POST_Director_GetProfilerDataNodes: "/api/Director/GetProfilerDataNodes",
|
|
9
|
+
POST_Director_GetServerAudits: "/api/Director/GetServerAudits",
|
|
10
|
+
POST_Director_GetDynamicViewData: "/api/Director/GetDynamicViewData",
|
|
11
|
+
POST_Director_GetServerLocks: "/api/Director/GetServerLocks",
|
|
12
|
+
GET_Director_GetServerLogs: "/api/Director/GetServerLogs",
|
|
13
|
+
GET_Director_GetDynamicViews: "/api/Director/GetDynamicViews",
|
|
14
|
+
POST_Director_GetServerWorkers: "/api/Director/GetServerWorkers",
|
|
15
|
+
POST_Director_GetTopActivities: "/api/Director/GetTopActivities",
|
|
16
|
+
GET_Director_GetWorkerStatus: "/api/Director/GetWorkerStatus",
|
|
17
|
+
GET_Director_InvalidateServerSideCache: "/api/Director/InvalidateServerSideCache",
|
|
18
|
+
GET_Director_KillProcess: "/api/Director/KillProcess",
|
|
19
|
+
GET_Director_SetProcessTracing: "/api/Director/SetProcessTracing",
|
|
20
|
+
GET_Director_StartWorker: "/api/Director/StartWorker",
|
|
21
|
+
GET_Director_StopWorker: "/api/Director/StopWorker",
|
|
22
|
+
GET_Director_GetNodeStats: "/api/Director/GetNodeStats",
|
|
23
23
|
};
|
|
24
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
24
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUmVwb3NpdG9yeS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2FkbWluLW1vZHVsZS9zcmMvbGliL21vZGVscy9leHRlcm5hbHMvUmVwb3NpdG9yeS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQUMsTUFBTSxVQUFVLEdBQUc7SUFDdEIsdUNBQ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aXJlY3Rvci9HZXRUb3BBY3Rpdml0aWVzXCIsXHJcbiAgICBHRVRfRGlyZWN0b3JfR2V0V29ya2VyU3RhdHVzOiBcIi9hcGkvRGlyZWN0b3IvR2V0V29ya2VyU3RhdHVzXCIsXHJcbiAgICBHRVRfRGlyZWN0b3JfSW52YWxpZGF0ZVNlcnZlclNpZGVDYWNoZTogXCIvYXBpL0RpcmVjdG9yL0ludmFsaWRhdGVTZXJ2ZXJTaWRlQ2FjaGVcIixcclxuICAgIEdFVF9EaXJlY3Rvcl9LaWxsUHJvY2VzczogXCIvYXBpL0RpcmVjdG9yL0tpbGxQcm9jZXNzXCIsXHJcbiAgICBHRVRfRGlyZWN0b3JfU2V0UHJvY2Vzc1RyYWNpbmc6IFwiL2FwaS9EaXJlY3Rvci9TZXRQcm9jZXNzVHJhY2luZ1wiLFxyXG4gICAgR0VUX0RpcmVjdG9yX1N0YXJ0V29ya2VyOiBcIi9hcGkvRGlyZWN0b3IvU3RhcnRXb3JrZXJcIixcclxuICAgIEdFVF9EaXJlY3Rvcl9TdG9wV29ya2VyOiBcIi9hcGkvRGlyZWN0b3IvU3RvcFdvcmtlclwiLFxyXG4gICAgR0VUX0RpcmVjdG9yX0dldE5vZGVTdGF0czogXCIvYXBpL0RpcmVjdG9yL0dldE5vZGVTdGF0c1wiLFxyXG59Il19
|
|
@@ -32,7 +32,8 @@ import * as i3 from '@esfaenza/preferences';
|
|
|
32
32
|
import * as i4 from '@esfaenza/httpservice';
|
|
33
33
|
import { HttpParams } from '@angular/common/http';
|
|
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() {
|
|
@@ -43,27 +44,27 @@ class AuditsView extends AppSearch {
|
|
|
43
44
|
}
|
|
44
45
|
|
|
45
46
|
const Repository = {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
47
|
+
GET_Director_ChangeProcessConsumerGroup: "/api/Director/ChangeProcessConsumerGroup",
|
|
48
|
+
GET_Director_ClearAllCaches: "/api/Director/ClearAllCaches",
|
|
49
|
+
GET_Director_GetConsumerGroups: "/api/Director/GetConsumerGroups#cache",
|
|
50
|
+
GET_Director_GetInfos: "/api/Director/GetInfos",
|
|
51
|
+
GET_Director_GetMetrics: "/api/Director/GetMetrics",
|
|
52
|
+
POST_Director_GetMetrics: "/api/Director/GetMetrics",
|
|
53
|
+
POST_Director_GetProfilerDataNodes: "/api/Director/GetProfilerDataNodes",
|
|
54
|
+
POST_Director_GetServerAudits: "/api/Director/GetServerAudits",
|
|
55
|
+
POST_Director_GetDynamicViewData: "/api/Director/GetDynamicViewData",
|
|
56
|
+
POST_Director_GetServerLocks: "/api/Director/GetServerLocks",
|
|
57
|
+
GET_Director_GetServerLogs: "/api/Director/GetServerLogs",
|
|
58
|
+
GET_Director_GetDynamicViews: "/api/Director/GetDynamicViews",
|
|
59
|
+
POST_Director_GetServerWorkers: "/api/Director/GetServerWorkers",
|
|
60
|
+
POST_Director_GetTopActivities: "/api/Director/GetTopActivities",
|
|
61
|
+
GET_Director_GetWorkerStatus: "/api/Director/GetWorkerStatus",
|
|
62
|
+
GET_Director_InvalidateServerSideCache: "/api/Director/InvalidateServerSideCache",
|
|
63
|
+
GET_Director_KillProcess: "/api/Director/KillProcess",
|
|
64
|
+
GET_Director_SetProcessTracing: "/api/Director/SetProcessTracing",
|
|
65
|
+
GET_Director_StartWorker: "/api/Director/StartWorker",
|
|
66
|
+
GET_Director_StopWorker: "/api/Director/StopWorker",
|
|
67
|
+
GET_Director_GetNodeStats: "/api/Director/GetNodeStats",
|
|
67
68
|
};
|
|
68
69
|
|
|
69
70
|
const ADM_MODULE_PATH = new InjectionToken('ADM_MODULE_PATH');
|
|
@@ -151,7 +152,7 @@ class AdmAuditsComponent {
|
|
|
151
152
|
//Altirmenti genero il modello nuovo normalmente
|
|
152
153
|
if (HotPotato) {
|
|
153
154
|
this.searchView = HotPotato;
|
|
154
|
-
this.POSTGetProcesses(Repository["
|
|
155
|
+
this.POSTGetProcesses(Repository["POST_Director_GetServerAudits"], this.searchView);
|
|
155
156
|
}
|
|
156
157
|
else {
|
|
157
158
|
this.searchView = new AuditsView();
|
|
@@ -164,7 +165,7 @@ class AdmAuditsComponent {
|
|
|
164
165
|
this.searchInProgress = true;
|
|
165
166
|
if (resetPage)
|
|
166
167
|
this.searchView.page = 1;
|
|
167
|
-
this.POSTGetProcesses(Repository["
|
|
168
|
+
this.POSTGetProcesses(Repository["POST_Director_GetServerAudits"], this.searchView);
|
|
168
169
|
}
|
|
169
170
|
POSTGetProcesses(url, data) {
|
|
170
171
|
this.http.post(url, data).subscribe(t => {
|
|
@@ -296,7 +297,7 @@ class AdmWrkComponent {
|
|
|
296
297
|
init(HotPotato) {
|
|
297
298
|
if (HotPotato) {
|
|
298
299
|
this.searchView = HotPotato;
|
|
299
|
-
this.POSTGetProcesses(Repository["
|
|
300
|
+
this.POSTGetProcesses(Repository["POST_Director_GetServerWorkers"], this.searchView);
|
|
300
301
|
}
|
|
301
302
|
else {
|
|
302
303
|
this.searchView = new ProcessesView();
|
|
@@ -307,7 +308,7 @@ class AdmWrkComponent {
|
|
|
307
308
|
this.searchView.searchinprogress = true;
|
|
308
309
|
if (resetPage)
|
|
309
310
|
this.searchView.page = 1;
|
|
310
|
-
this.POSTGetProcesses(Repository["
|
|
311
|
+
this.POSTGetProcesses(Repository["POST_Director_GetServerWorkers"], this.searchView);
|
|
311
312
|
}
|
|
312
313
|
POSTGetProcesses(url, data) {
|
|
313
314
|
this.http.post(url, data).subscribe(t => {
|
|
@@ -341,7 +342,7 @@ class AdmWrkComponent {
|
|
|
341
342
|
.set("sid", process.properties["sid"] || process.properties["SID"])
|
|
342
343
|
.set("serial", process.properties["serial"] || process.properties["SERIAL"])
|
|
343
344
|
.set("enable", tracing.toString());
|
|
344
|
-
this.http.get(Repository["
|
|
345
|
+
this.http.get(Repository["GET_Director_SetProcessTracing"], pars).subscribe(t => {
|
|
345
346
|
this.msgExts.manageStringResponse(t, "", this.lc.loc("Errori nella modifica del Tracing del Processo"), () => this.sendSearch());
|
|
346
347
|
});
|
|
347
348
|
}
|
|
@@ -351,7 +352,7 @@ class AdmWrkComponent {
|
|
|
351
352
|
.set("instanceid", process.properties["inst_id"] || process.properties["INST_ID"])
|
|
352
353
|
.set("sid", process.properties["sid"] || process.properties["SID"])
|
|
353
354
|
.set("serial", process.properties["serial"] || process.properties["SERIAL"]);
|
|
354
|
-
this.http.get(Repository["
|
|
355
|
+
this.http.get(Repository["GET_Director_KillProcess"], pars).subscribe(t => {
|
|
355
356
|
this.msgExts.manageStringResponse(t, this.lc.loc("Processo ucciso con successo"), this.lc.loc("Errori durante la Kill del Processo"), () => this.sendSearch());
|
|
356
357
|
});
|
|
357
358
|
});
|
|
@@ -366,7 +367,7 @@ class AdmWrkComponent {
|
|
|
366
367
|
this.dlgChangeCg.show();
|
|
367
368
|
}
|
|
368
369
|
loadCgDictionaries() {
|
|
369
|
-
this.http.get(Repository["
|
|
370
|
+
this.http.get(Repository["GET_Director_GetConsumerGroups"]).subscribe(t => this.CGs = t);
|
|
370
371
|
}
|
|
371
372
|
setupChangeCg() {
|
|
372
373
|
this.utiExts.cleanForm(this.cgFrom);
|
|
@@ -378,7 +379,7 @@ class AdmWrkComponent {
|
|
|
378
379
|
.set("sid", this.ProcessOnEdit.properties["sid"] || this.ProcessOnEdit.properties["SID"])
|
|
379
380
|
.set("serial", this.ProcessOnEdit.properties["serial"] || this.ProcessOnEdit.properties["SERIAL"])
|
|
380
381
|
.set("consumer_group", this.newCg);
|
|
381
|
-
this.http.get(Repository["
|
|
382
|
+
this.http.get(Repository["GET_Director_ChangeProcessConsumerGroup"], pars).subscribe(t => {
|
|
382
383
|
this.msgExts.manageStringResponse(t, this.lc.loc("Gruppo di Consumo modificato con successo"), this.lc.loc("Errori nella modifica del Gruppo di Consumo"), () => this.sendSearch());
|
|
383
384
|
});
|
|
384
385
|
return true;
|
|
@@ -643,7 +644,7 @@ class AdmProfilerComponent {
|
|
|
643
644
|
init(HotPotato) {
|
|
644
645
|
if (HotPotato) {
|
|
645
646
|
this.searchView = HotPotato;
|
|
646
|
-
this.POSTGetItems(Repository["
|
|
647
|
+
this.POSTGetItems(Repository["POST_Director_GetProfilerDataNodes"], this.searchView);
|
|
647
648
|
}
|
|
648
649
|
else {
|
|
649
650
|
this.searchView = new ProfilerDataNodesView();
|
|
@@ -658,7 +659,7 @@ class AdmProfilerComponent {
|
|
|
658
659
|
this.searchView.searchinprogress = true;
|
|
659
660
|
if (resetPage)
|
|
660
661
|
this.searchView.page = 1;
|
|
661
|
-
this.POSTGetItems(Repository["
|
|
662
|
+
this.POSTGetItems(Repository["POST_Director_GetProfilerDataNodes"], this.searchView);
|
|
662
663
|
}
|
|
663
664
|
POSTGetItems(url, data) {
|
|
664
665
|
this.http.post(url, data).subscribe(t => {
|
|
@@ -671,7 +672,7 @@ class AdmProfilerComponent {
|
|
|
671
672
|
var view = JSON.parse(JSON.stringify(this.searchView));
|
|
672
673
|
view.page = 1;
|
|
673
674
|
view.itemsperpageoverride = 9999999;
|
|
674
|
-
this.http.post(Repository["
|
|
675
|
+
this.http.post(Repository["POST_Director_GetProfilerDataNodes"], view).subscribe(t => {
|
|
675
676
|
let items = this.expExts.deserializeForExport(t.items, ProfilerDataNode);
|
|
676
677
|
dataCallBack(items);
|
|
677
678
|
});
|
|
@@ -679,7 +680,7 @@ class AdmProfilerComponent {
|
|
|
679
680
|
loadNodeDetails(nodeId) {
|
|
680
681
|
this.NodeDetails = null;
|
|
681
682
|
let pars = new HttpParams().set('nodeId', nodeId);
|
|
682
|
-
this.http.get(Repository.
|
|
683
|
+
this.http.get(Repository.GET_Director_GetNodeStats, pars).subscribe(t => {
|
|
683
684
|
this.NodeDetails = t;
|
|
684
685
|
});
|
|
685
686
|
}
|
|
@@ -780,7 +781,7 @@ class AdmTopActivitiesComponent {
|
|
|
780
781
|
init(HotPotato) {
|
|
781
782
|
if (HotPotato) {
|
|
782
783
|
this.searchView = HotPotato;
|
|
783
|
-
this.POSTGetItems(Repository.
|
|
784
|
+
this.POSTGetItems(Repository.POST_Director_GetTopActivities, this.searchView, false);
|
|
784
785
|
}
|
|
785
786
|
else {
|
|
786
787
|
this.searchView = new TopActivitiesDataView();
|
|
@@ -795,7 +796,7 @@ class AdmTopActivitiesComponent {
|
|
|
795
796
|
this.searchView.searchinprogress = true;
|
|
796
797
|
if (resetPage)
|
|
797
798
|
this.searchView.page = 1;
|
|
798
|
-
this.POSTGetItems(Repository.
|
|
799
|
+
this.POSTGetItems(Repository.POST_Director_GetTopActivities, searchViewOverride !== null && searchViewOverride !== void 0 ? searchViewOverride : this.searchView, update);
|
|
799
800
|
}
|
|
800
801
|
POSTGetItems(url, data, update) {
|
|
801
802
|
this.http.post(url, data).subscribe((t) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -804,18 +805,16 @@ class AdmTopActivitiesComponent {
|
|
|
804
805
|
this.searchView = t;
|
|
805
806
|
this.localStorage.setItem("HotSearchTopAct", this.searchView).subscribe();
|
|
806
807
|
}
|
|
807
|
-
|
|
808
|
+
// DirectorInfos anche se per qualche motivo crasha di brutto è comunque non obbligatorio, evito di non caricare la pagina solo perché lui scoppia
|
|
809
|
+
var dirinfos = yield this.http.get(Repository.GET_Director_GetInfos, null, null, false).pipe(catchError(_ => of(null))).toPromise();
|
|
808
810
|
this.searchView.searchinprogress = false;
|
|
809
811
|
this.reviewBindings(update, t, dirinfos);
|
|
810
812
|
}));
|
|
811
813
|
}
|
|
812
|
-
getDirectorInfos() {
|
|
813
|
-
return this.http.get(Repository.GET_Adm_GetInfos).pipe(map(res => { return res; })).toPromise();
|
|
814
|
-
}
|
|
815
814
|
loadNodeDetails(nodeId) {
|
|
816
815
|
this.NodeDetails = null;
|
|
817
816
|
let pars = new HttpParams().set('nodeId', nodeId);
|
|
818
|
-
this.http.get(Repository.
|
|
817
|
+
this.http.get(Repository.GET_Director_GetNodeStats, pars).subscribe(t => {
|
|
819
818
|
this.NodeDetails = t;
|
|
820
819
|
});
|
|
821
820
|
}
|
|
@@ -960,7 +959,7 @@ class AdmEnqComponent {
|
|
|
960
959
|
init(HotPotato) {
|
|
961
960
|
if (HotPotato) {
|
|
962
961
|
this.locksView = HotPotato;
|
|
963
|
-
this.POSTGetProcesses(Repository["
|
|
962
|
+
this.POSTGetProcesses(Repository["POST_Director_GetServerLocks"], this.locksView);
|
|
964
963
|
}
|
|
965
964
|
else {
|
|
966
965
|
this.locksView = new LocksView();
|
|
@@ -970,7 +969,7 @@ class AdmEnqComponent {
|
|
|
970
969
|
sendSearch(resetPage = true) {
|
|
971
970
|
if (resetPage)
|
|
972
971
|
this.locksView.page = 1;
|
|
973
|
-
this.POSTGetProcesses(Repository["
|
|
972
|
+
this.POSTGetProcesses(Repository["POST_Director_GetServerLocks"], this.locksView);
|
|
974
973
|
}
|
|
975
974
|
POSTGetProcesses(url, data) {
|
|
976
975
|
this.http.post(url, data).subscribe(t => {
|
|
@@ -1051,7 +1050,7 @@ class AdmMetricsComponent {
|
|
|
1051
1050
|
this.selectedInstance = "";
|
|
1052
1051
|
this.searchView.filtermetrics = [];
|
|
1053
1052
|
var pars = new HttpParams().set("from", this.searchView.filterfrom || "").set("to", this.searchView.filterto || "");
|
|
1054
|
-
this.http.get(Repository["
|
|
1053
|
+
this.http.get(Repository["GET_Director_GetMetrics"], pars).subscribe(t => this.Metrics = t);
|
|
1055
1054
|
}
|
|
1056
1055
|
doInit(ignoreStorage) {
|
|
1057
1056
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1070,7 +1069,7 @@ class AdmMetricsComponent {
|
|
|
1070
1069
|
init(HotPotato) {
|
|
1071
1070
|
if (HotPotato) {
|
|
1072
1071
|
this.searchView = HotPotato;
|
|
1073
|
-
this.POSTGetItems(Repository["
|
|
1072
|
+
this.POSTGetItems(Repository["POST_Director_GetMetrics"], this.searchView, false);
|
|
1074
1073
|
}
|
|
1075
1074
|
else {
|
|
1076
1075
|
this.searchView = new MetricsView();
|
|
@@ -1090,7 +1089,7 @@ class AdmMetricsComponent {
|
|
|
1090
1089
|
this.searchView.itemsperpageoverride = 999999;
|
|
1091
1090
|
if (resetPage)
|
|
1092
1091
|
this.searchView.page = 1;
|
|
1093
|
-
this.POSTGetItems(Repository["
|
|
1092
|
+
this.POSTGetItems(Repository["POST_Director_GetMetrics"], searchViewOverride !== null && searchViewOverride !== void 0 ? searchViewOverride : this.searchView, update);
|
|
1094
1093
|
}
|
|
1095
1094
|
POSTGetItems(url, data, update) {
|
|
1096
1095
|
data.filterrealtime = update ? data.filterrealtime : !(!!data.filterfrom || !!data.filterto);
|
|
@@ -1190,7 +1189,7 @@ class AdmLogsComponent {
|
|
|
1190
1189
|
this.intercom.send(InboundMessageTypes.Navigation, { sub: false, routeTitle: this.lc.loc(this.route.snapshot.data["title"]) });
|
|
1191
1190
|
}
|
|
1192
1191
|
ngOnInit() {
|
|
1193
|
-
this.http.get(Repository["
|
|
1192
|
+
this.http.get(Repository["GET_Director_GetServerLogs"]).subscribe(t => { this.Log = t; });
|
|
1194
1193
|
}
|
|
1195
1194
|
}
|
|
1196
1195
|
AdmLogsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AdmLogsComponent, deps: [{ token: i1.InterComService }, { token: i4.HTTPService }, { token: i2.LocalizationService }, { token: i5.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -1238,7 +1237,7 @@ class AdmDynamicViewsComponent {
|
|
|
1238
1237
|
this.intercom.send(InboundMessageTypes.Navigation, { sub: false, routeTitle: this.lc.loc(this.route.snapshot.data["title"]) });
|
|
1239
1238
|
}
|
|
1240
1239
|
ngOnInit() {
|
|
1241
|
-
this.http.get(Repository.
|
|
1240
|
+
this.http.get(Repository.GET_Director_GetDynamicViews).subscribe(t => { this.Names = t; });
|
|
1242
1241
|
this.storageSub = this.route.queryParams.subscribe(params => { this.Init(params["ignoreStorage"]); });
|
|
1243
1242
|
}
|
|
1244
1243
|
ngOnDestroy() {
|
|
@@ -1264,7 +1263,7 @@ class AdmDynamicViewsComponent {
|
|
|
1264
1263
|
//Altirmenti genero il modello nuovo normalmente
|
|
1265
1264
|
if (HotPotato) {
|
|
1266
1265
|
this.searchView = HotPotato;
|
|
1267
|
-
this.POSTGetItems(Repository.
|
|
1266
|
+
this.POSTGetItems(Repository.POST_Director_GetDynamicViewData, this.searchView);
|
|
1268
1267
|
}
|
|
1269
1268
|
else {
|
|
1270
1269
|
this.searchView = new DynamicViewsView();
|
|
@@ -1276,7 +1275,7 @@ class AdmDynamicViewsComponent {
|
|
|
1276
1275
|
if (resetPage)
|
|
1277
1276
|
this.searchView.page = 1;
|
|
1278
1277
|
this.searchView.filtername = this.filterName;
|
|
1279
|
-
this.POSTGetItems(Repository.
|
|
1278
|
+
this.POSTGetItems(Repository.POST_Director_GetDynamicViewData, this.searchView);
|
|
1280
1279
|
}
|
|
1281
1280
|
POSTGetItems(url, data) {
|
|
1282
1281
|
if (!this.searchView.filtername) {
|