Skip to content

Commit

Permalink
StateTimeline: Add disconnect value option (#70610)
Browse files Browse the repository at this point in the history
Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
  • Loading branch information
3 people committed Jul 7, 2023
1 parent 69d8e3d commit 2b7af77
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion public/app/plugins/panel/state-timeline/module.tsx
Expand Up @@ -8,6 +8,7 @@ import {
import { VisibilityMode } from '@grafana/schema';
import { commonOptionsBuilder } from '@grafana/ui';

import { InsertNullsEditor } from '../timeseries/InsertNullsEditor';
import { SpanNullsEditor } from '../timeseries/SpanNullsEditor';

import { StateTimelinePanel } from './StateTimelinePanel';
Expand Down Expand Up @@ -57,7 +58,17 @@ export const plugin = new PanelPlugin<Options, FieldConfig>(StateTimelinePanel)
defaultValue: false,
editor: SpanNullsEditor,
override: SpanNullsEditor,
shouldApply: (f) => f.type !== FieldType.time,
shouldApply: (field) => field.type !== FieldType.time,
process: identityOverrideProcessor,
})
.addCustomEditor<void, boolean>({
id: 'insertNulls',
path: 'insertNulls',
name: 'Disconnect values',
defaultValue: false,
editor: InsertNullsEditor,
override: InsertNullsEditor,
shouldApply: (field) => field.type !== FieldType.time,
process: identityOverrideProcessor,
});

Expand Down

0 comments on commit 2b7af77

Please sign in to comment.