mirror of
https://github.com/grafana/grafana.git
synced 2024-12-01 04:59:15 -06:00
feat(alerting): updated
This commit is contained in:
parent
1edd224168
commit
e044a65d08
@ -23,7 +23,7 @@ export class ThresholdControls {
|
||||
</div>
|
||||
<div class="alert-handle">
|
||||
<i class="icon-gf icon-gf-${type} alert-icon-${type}"></i>
|
||||
${op} ${value}
|
||||
${value}
|
||||
</div>`;
|
||||
}
|
||||
|
||||
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user