mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
FieldConfig: Apply Thresholds for string values (#27656)
* apply thresholds for strings * apply thresholds for all FieldTypes
This commit is contained in:
parent
61a3160c34
commit
232ad5c42e
@ -146,7 +146,7 @@ export const getStandardFieldConfigs = () => {
|
||||
{ value: 80, color: 'red' },
|
||||
],
|
||||
},
|
||||
shouldApply: field => field.type === FieldType.number,
|
||||
shouldApply: () => true,
|
||||
category: ['Thresholds'],
|
||||
getItemsCount: value => (value ? value.steps.length : 0),
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user