This commit is contained in:
Stephen Papierski 2023-11-14 17:22:57 -07:00
parent 18f2056223
commit 263eecc455
No known key found for this signature in database

View file

@ -65,9 +65,9 @@ export default {
let lastBeat = heartbeatList.at(-1); let lastBeat = heartbeatList.at(-1);
// TODO: Simplify? When page loads, lastBeat contains ping_threshold, // TODO: Simplify? When page loads, lastBeat contains ping_threshold,
// but after the following heartbeat it has pingThreshold. // but after the following heartbeat it has pingThreshold.
if (lastBeat?.hasOwnProperty('pingThreshold')) { if (lastBeat?.hasOwnProperty("pingThreshold")) {
return lastBeat.pingThreshold; return lastBeat.pingThreshold;
} else if (lastBeat?.hasOwnProperty('ping_threshold')) { } else if (lastBeat?.hasOwnProperty("ping_threshold")) {
return lastBeat.ping_threshold; return lastBeat.ping_threshold;
} else { } else {
return undefined; return undefined;
@ -176,12 +176,12 @@ export default {
/* drawTime: 'afterDraw', */ /* drawTime: 'afterDraw', */
annotations: { annotations: {
line1: { line1: {
type: 'line', type: "line",
mode: 'horizontal', mode: "horizontal",
scaleID: 'y', scaleID: "y",
value: this.threshold, value: this.threshold,
endValue: this.threshold, endValue: this.threshold,
borderColor: 'rgba(248,163,6,1.0)', borderColor: "rgba(248,163,6,1.0)",
borderWith: 2, borderWith: 2,
borderDash: [ 1, 3 ], borderDash: [ 1, 3 ],
adjustScaleRange: false, adjustScaleRange: false,