GraphNG: rename "points" to "showPoints" (#29635)

* rename "points" to "showPoints"

* rename ShowPoints enum to PointVisibility
This commit is contained in:
Leon Sorokin
2020-12-07 09:29:34 -06:00
committed by GitHub
parent 874f2fafb2
commit fee0d44e5c
5 changed files with 24 additions and 24 deletions

View File

@@ -2,7 +2,7 @@ import { FieldColorModeId, FieldConfigProperty, PanelPlugin } from '@grafana/dat
import { LegendDisplayMode } from '@grafana/ui';
import {
GraphFieldConfig,
PointMode,
PointVisibility,
DrawStyle,
AxisPlacement,
graphFieldOptions,
@@ -76,11 +76,11 @@ export const plugin = new PanelPlugin<Options, GraphFieldConfig>(GraphPanel)
showIf: c => c.drawStyle === DrawStyle.Line,
})
.addRadio({
path: 'points',
name: 'Points',
defaultValue: graphFieldOptions.points[0].value,
path: 'showPoints',
name: 'Show points',
defaultValue: graphFieldOptions.showPoints[0].value,
settings: {
options: graphFieldOptions.points,
options: graphFieldOptions.showPoints,
},
})
.addSliderInput({
@@ -92,7 +92,7 @@ export const plugin = new PanelPlugin<Options, GraphFieldConfig>(GraphPanel)
max: 10,
step: 1,
},
showIf: c => c.points !== PointMode.Never,
showIf: c => c.showPoints !== PointVisibility.Never,
})
.addRadio({
path: 'axisPlacement',