Browse Source

disable named colors

merge-requests/6/head
rozetko 3 years ago
parent
commit
44bcfcac85
  1. 6
      src/components/editors/ThresholdsEditor.tsx

6
src/components/editors/ThresholdsEditor.tsx

@ -78,7 +78,7 @@ export function ThresholdsEditor({ onChange, value, context }: StandardEditorPro
<ColorPicker <ColorPicker
color={config.defaultColor} color={config.defaultColor}
onChange={(val) => onFieldChange('defaultColor', val)} onChange={(val) => onFieldChange('defaultColor', val)}
enableNamedColors={true} enableNamedColors={false}
/> />
</InlineLabel> </InlineLabel>
</InlineField> </InlineField>
@ -88,7 +88,7 @@ export function ThresholdsEditor({ onChange, value, context }: StandardEditorPro
<ColorPicker <ColorPicker
color={config.arcBackground} color={config.arcBackground}
onChange={(val) => onFieldChange('arcBackground', val)} onChange={(val) => onFieldChange('arcBackground', val)}
enableNamedColors={true} enableNamedColors={false}
/> />
</InlineLabel> </InlineLabel>
</InlineField> </InlineField>
@ -122,7 +122,7 @@ export function ThresholdsEditor({ onChange, value, context }: StandardEditorPro
<ColorPicker <ColorPicker
color={threshold.color} color={threshold.color}
onChange={(newVal) => onThresholdFieldChange(thresholdIdx, 'color', newVal)} onChange={(newVal) => onThresholdFieldChange(thresholdIdx, 'color', newVal)}
enableNamedColors={true} enableNamedColors={false}
/> />
</InlineLabel> </InlineLabel>
</InlineField> </InlineField>

Loading…
Cancel
Save