Browse Source

disable named colors

merge-requests/6/head
rozetko 2 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
color={config.defaultColor}
onChange={(val) => onFieldChange('defaultColor', val)}
enableNamedColors={true}
enableNamedColors={false}
/>
</InlineLabel>
</InlineField>
@ -88,7 +88,7 @@ export function ThresholdsEditor({ onChange, value, context }: StandardEditorPro
<ColorPicker
color={config.arcBackground}
onChange={(val) => onFieldChange('arcBackground', val)}
enableNamedColors={true}
enableNamedColors={false}
/>
</InlineLabel>
</InlineField>
@ -122,7 +122,7 @@ export function ThresholdsEditor({ onChange, value, context }: StandardEditorPro
<ColorPicker
color={threshold.color}
onChange={(newVal) => onThresholdFieldChange(thresholdIdx, 'color', newVal)}
enableNamedColors={true}
enableNamedColors={false}
/>
</InlineLabel>
</InlineField>

Loading…
Cancel
Save