Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(210)

Unified Diff: dashboard/dashboard/elements/chart-container.html

Issue 2776653002: [ESLint] Fix violations when enabling curly rule in eslint. (Closed)
Patch Set: rebase Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « dashboard/dashboard/elements/bug-info-span.html ('k') | dashboard/dashboard/elements/chart-tooltip.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dashboard/dashboard/elements/chart-container.html
diff --git a/dashboard/dashboard/elements/chart-container.html b/dashboard/dashboard/elements/chart-container.html
index dd60fbbda89d8a29269a1cd4d0bc40ab360b5d5d..a3c14a4ff4ab5e9135c8f711564777c560f8fe71 100644
--- a/dashboard/dashboard/elements/chart-container.html
+++ b/dashboard/dashboard/elements/chart-container.html
@@ -1408,11 +1408,13 @@ triaging functionality in the chart.
max += axis.max == 0 ? 1 : margin;
} else {
min -= delta * margin;
- if (min < 0 && axis.min >= 0)
+ if (min < 0 && axis.min >= 0) {
min = 0;
+ }
max += delta * margin;
- if (max > 0 && axis.max <= 0)
+ if (max > 0 && axis.max <= 0) {
max = 0;
+ }
}
axis.min = min;
axis.max = max;
@@ -1909,8 +1911,9 @@ triaging functionality in the chart.
* @param {Event} The click event.
*/
onAlertMouseOver: function(flotSeriesIndex, dataIndex, event) {
- if (!this.stickyTooltip)
+ if (!this.stickyTooltip) {
this.showTooltip(flotSeriesIndex, dataIndex);
+ }
},
/**
* Updates the interface when a bug is triaged.
@@ -2052,11 +2055,13 @@ triaging functionality in the chart.
}
// Set the alert-related properties of the tooltip.
- if (opt_alerts === undefined)
+ if (opt_alerts === undefined) {
opt_alerts = null;
+ }
this.$.tooltip.alerts = opt_alerts;
- if (opt_triaged === undefined)
+ if (opt_triaged === undefined) {
opt_triaged = null;
+ }
this.$.tooltip.triagedAlerts = opt_triaged;
if (annotation['g_anomaly']) {
if (annotation.g_anomaly['bug_id']) {
« no previous file with comments | « dashboard/dashboard/elements/bug-info-span.html ('k') | dashboard/dashboard/elements/chart-tooltip.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698