METRON-2291 [UI] Fixing and rephrasing warning messages on Alerts UI (tiborm via sardell) closes apache/metron#1535
diff --git a/metron-interface/metron-alerts/src/app/alerts/alerts-list/alerts-list.component.ts b/metron-interface/metron-alerts/src/app/alerts/alerts-list/alerts-list.component.ts
index a644b76..1e329a5 100755
--- a/metron-interface/metron-alerts/src/app/alerts/alerts-list/alerts-list.component.ts
+++ b/metron-interface/metron-alerts/src/app/alerts/alerts-list/alerts-list.component.ts
@@ -525,18 +525,18 @@
getStaleDataWarning() {
if (this.autoPollingSvc.getIsPollingActive()) {
return `<i class="fa fa-warning" aria-hidden="true"></i> Data is in a stale state!
+ Automatic refresh is turned on. Your filter and/or time-range changes will apply automatically on next refresh.`;
+ } else {
+ return `<i class="fa fa-warning" aria-hidden="true"></i> Data is in a stale state!
Click <i class="fa fa-search" aria-hidden="true"></i> to update your view based
on your current filter and time-range configuration!`;
- } else {
- return `<i class="fa fa-warning" aria-hidden="true"></i> Data is in a stale state!
- Automatic refresh is turned on. Your filter and/or time-range changes will apply automatically on next refresh.`;
}
}
getPollingCongestionWarning() {
return `<i class="fa fa-warning" aria-hidden="true"></i> Refresh interval is shorter than the response time.
Please increase the refresh interval in the <i class="fa fa-sliders" aria-hidden="true"></i> menu above,
- or try to simplify your query filter.`;
+ or try to optimize your query filter.`;
}
private updatePollingInterval(refreshInterval: number): void {