Grafana/schema: Fix plugins API regression. Add back "hidden" in LegendDisplayMode (#53925)

This commit is contained in:
Esteban Beltran
2022-08-19 17:06:33 +02:00
committed by GitHub
parent edb54fc8d3
commit 88419aa8fe
2 changed files with 3 additions and 1 deletions
@@ -133,7 +133,8 @@ GraphThresholdsStyleConfig: {
LegendPlacement: "bottom" | "right" @cuetsy(kind="type")
// TODO docs
LegendDisplayMode: "list" | "table" @cuetsy(kind="enum")
// Note: "hidden" needs to remain as an option for plugins compatibility
LegendDisplayMode: "list" | "table" | "hidden" @cuetsy(kind="enum")
// TODO docs
TableSortByFieldState: {
@@ -168,6 +168,7 @@ export interface GraphThresholdsStyleConfig {
export type LegendPlacement = ('bottom' | 'right');
export enum LegendDisplayMode {
Hidden = 'hidden',
List = 'list',
Table = 'table',
}