@esfaenza/admin-module 15.2.13 → 15.2.14
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/metrics/metrics_search.component.mjs +7 -5
- package/fesm2015/esfaenza-admin-module.mjs +6 -4
- package/fesm2015/esfaenza-admin-module.mjs.map +1 -1
- package/fesm2020/esfaenza-admin-module.mjs +6 -4
- package/fesm2020/esfaenza-admin-module.mjs.map +1 -1
- package/lib/components/metrics/metrics_search.component.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1093,7 +1093,7 @@ class AdmMetricsComponent {
|
|
|
1093
1093
|
this.metricsToShow = [];
|
|
1094
1094
|
this.searchView = t;
|
|
1095
1095
|
this.searchView.items.forEach(m => {
|
|
1096
|
-
if (!this.Instances.find(t => t.id == m.instance))
|
|
1096
|
+
if (!this.Instances.find(t => t.id == m.instance) && m.instance)
|
|
1097
1097
|
this.Instances.push(new KeyValue(m.instance, m.instance));
|
|
1098
1098
|
});
|
|
1099
1099
|
this.instanceRequired = this.Instances.length > 1;
|
|
@@ -1101,6 +1101,8 @@ class AdmMetricsComponent {
|
|
|
1101
1101
|
this.selectedInstance = this.Instances[0].id;
|
|
1102
1102
|
this.instanceSelected();
|
|
1103
1103
|
}
|
|
1104
|
+
else
|
|
1105
|
+
this.instanceSelected(true);
|
|
1104
1106
|
this.localStorage.setItem("HotSearchMetrics", this.searchView).subscribe();
|
|
1105
1107
|
}
|
|
1106
1108
|
else {
|
|
@@ -1121,10 +1123,10 @@ class AdmMetricsComponent {
|
|
|
1121
1123
|
this.searchView.searchinprogress = false;
|
|
1122
1124
|
});
|
|
1123
1125
|
}
|
|
1124
|
-
instanceSelected() {
|
|
1125
|
-
if (!this.selectedInstance)
|
|
1126
|
+
instanceSelected(allowNull = false) {
|
|
1127
|
+
if (!this.selectedInstance && !allowNull)
|
|
1126
1128
|
return;
|
|
1127
|
-
this.metricsToShow = this.searchView.items.filter(t => t.instance == this.selectedInstance);
|
|
1129
|
+
this.metricsToShow = this.searchView.items.filter(t => !this.selectedInstance || (t.instance == this.selectedInstance));
|
|
1128
1130
|
}
|
|
1129
1131
|
linkChartToMetric(metric, metricChart, chartComp) {
|
|
1130
1132
|
this.MetricsChartCache[this.metricKey(metric, metricChart)] = { chart: chartComp, lastTs: metricChart.series.map(t => dayjs.max(t.values.map(v => this.dateExts.getDateConvertion(v.d))))[0] };
|