@esfaenza/admin-module 11.2.32 → 11.2.34
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/bundles/esfaenza-admin-module.umd.js +7 -4
- package/bundles/esfaenza-admin-module.umd.js.map +1 -1
- package/bundles/esfaenza-admin-module.umd.min.js +1 -1
- package/bundles/esfaenza-admin-module.umd.min.js.map +1 -1
- package/esm2015/lib/components/metrics/metrics_search.component.js +7 -5
- package/fesm2015/esfaenza-admin-module.js +6 -4
- package/fesm2015/esfaenza-admin-module.js.map +1 -1
- package/lib/components/metrics/metrics_search.component.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1584,7 +1584,7 @@
|
|
|
1584
1584
|
this.metricsToShow = [];
|
|
1585
1585
|
this.searchView = t;
|
|
1586
1586
|
this.searchView.items.forEach(function (m) {
|
|
1587
|
-
if (!_this.Instances.find(function (t) { return t.id == m.instance; }))
|
|
1587
|
+
if (!_this.Instances.find(function (t) { return t.id == m.instance; }) && m.instance)
|
|
1588
1588
|
_this.Instances.push(new KeyValue(m.instance, m.instance));
|
|
1589
1589
|
});
|
|
1590
1590
|
this.instanceRequired = this.Instances.length > 1;
|
|
@@ -1592,6 +1592,8 @@
|
|
|
1592
1592
|
this.selectedInstance = this.Instances[0].id;
|
|
1593
1593
|
this.instanceSelected();
|
|
1594
1594
|
}
|
|
1595
|
+
else
|
|
1596
|
+
this.instanceSelected(true);
|
|
1595
1597
|
this.localStorage.setItem("HotSearchMetrics", this.searchView).subscribe();
|
|
1596
1598
|
}
|
|
1597
1599
|
else {
|
|
@@ -1614,11 +1616,12 @@
|
|
|
1614
1616
|
});
|
|
1615
1617
|
}); });
|
|
1616
1618
|
};
|
|
1617
|
-
AdmMetricsComponent.prototype.instanceSelected = function () {
|
|
1619
|
+
AdmMetricsComponent.prototype.instanceSelected = function (allowNull) {
|
|
1618
1620
|
var _this = this;
|
|
1619
|
-
if (
|
|
1621
|
+
if (allowNull === void 0) { allowNull = false; }
|
|
1622
|
+
if (!this.selectedInstance && !allowNull)
|
|
1620
1623
|
return;
|
|
1621
|
-
this.metricsToShow = this.searchView.items.filter(function (t) { return t.instance == _this.selectedInstance; });
|
|
1624
|
+
this.metricsToShow = this.searchView.items.filter(function (t) { return !_this.selectedInstance || (t.instance == _this.selectedInstance); });
|
|
1622
1625
|
};
|
|
1623
1626
|
AdmMetricsComponent.prototype.linkChartToMetric = function (metric, metricChart, chartComp) {
|
|
1624
1627
|
var _this = this;
|