Skip to content

Commit e044a65

Browse files
committed
feat(alerting): updated
1 parent 1edd224 commit e044a65

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

public/app/plugins/panel/graph/thresholds.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export class ThresholdControls {
2323
</div>
2424
<div class="alert-handle">
2525
<i class="icon-gf icon-gf-${type} alert-icon-${type}"></i>
26-
${op} ${value}
26+
${value}
2727
</div>`;
2828
}
2929

@@ -59,7 +59,7 @@ export class ThresholdControls {
5959
// calculate graph level
6060
var graphValue = plot.c2p({left: 0, top: posTop}).y;
6161
graphValue = parseInt(graphValue.toFixed(0));
62-
threshold.value = graphValue;
62+
threshold.from = graphValue;
6363

6464
var valueCanvasPos = plot.p2c({x: 0, y: graphValue});
6565

@@ -90,7 +90,7 @@ export class ThresholdControls {
9090

9191
renderHandle(type, model, defaultHandleTopPos) {
9292
var handleElem = this.placeholder.find(`.alert-handle-wrapper--${type}`);
93-
var value = model.value;
93+
var value = model.from;
9494
var valueStr = value;
9595
var handleTopPos = 0;
9696

0 commit comments

Comments
 (0)