mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
FieldOptions: Revert scalable unit option as we already support this via custom prefix/suffixes (#81893)
* StandardFieldOptions: Revert scalable unit option * forgot to save merge fixes
This commit is contained in:
@@ -247,22 +247,7 @@ export const getAllStandardFieldConfigs = () => {
|
||||
category,
|
||||
};
|
||||
|
||||
const unitScale: FieldConfigPropertyItem<unknown, boolean, BooleanFieldSettings> = {
|
||||
id: 'unitScale',
|
||||
path: 'unitScale',
|
||||
name: 'Scale units',
|
||||
description: 'Automatically scale units relative to magnitude of the value',
|
||||
|
||||
editor: standardEditorsRegistry.get('boolean').editor,
|
||||
override: standardEditorsRegistry.get('boolean').editor,
|
||||
process: booleanOverrideProcessor,
|
||||
|
||||
defaultValue: true,
|
||||
shouldApply: () => true,
|
||||
category,
|
||||
};
|
||||
|
||||
const fieldMinMax: FieldConfigPropertyItem<{ min: number; max: number }, boolean, BooleanFieldSettings> = {
|
||||
const fieldMinMax: FieldConfigPropertyItem<any, boolean, BooleanFieldSettings> = {
|
||||
id: 'fieldMinMax',
|
||||
path: 'fieldMinMax',
|
||||
name: 'Field min/max',
|
||||
@@ -431,19 +416,5 @@ export const getAllStandardFieldConfigs = () => {
|
||||
category,
|
||||
};
|
||||
|
||||
return [
|
||||
unit,
|
||||
unitScale,
|
||||
min,
|
||||
max,
|
||||
fieldMinMax,
|
||||
decimals,
|
||||
displayName,
|
||||
color,
|
||||
noValue,
|
||||
links,
|
||||
mappings,
|
||||
thresholds,
|
||||
filterable,
|
||||
];
|
||||
return [unit, min, max, fieldMinMax, decimals, displayName, color, noValue, links, mappings, thresholds, filterable];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user