From e044a65d08251731874185eb1cb1e56464e7ed10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Mon, 1 Aug 2016 22:15:28 +0200 Subject: [PATCH] feat(alerting): updated --- public/app/plugins/panel/graph/thresholds.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/app/plugins/panel/graph/thresholds.ts b/public/app/plugins/panel/graph/thresholds.ts index 9ec7a5efb53..77ec585bb50 100644 --- a/public/app/plugins/panel/graph/thresholds.ts +++ b/public/app/plugins/panel/graph/thresholds.ts @@ -23,7 +23,7 @@ export class ThresholdControls {
- ${op} ${value} + ${value}
`; } @@ -59,7 +59,7 @@ export class ThresholdControls { // calculate graph level var graphValue = plot.c2p({left: 0, top: posTop}).y; graphValue = parseInt(graphValue.toFixed(0)); - threshold.value = graphValue; + threshold.from = graphValue; var valueCanvasPos = plot.p2c({x: 0, y: graphValue}); @@ -90,7 +90,7 @@ export class ThresholdControls { renderHandle(type, model, defaultHandleTopPos) { var handleElem = this.placeholder.find(`.alert-handle-wrapper--${type}`); - var value = model.value; + var value = model.from; var valueStr = value; var handleTopPos = 0;