Prometheus/Loki: Allow custom value in operation selects (#46679)

* Prometheus/Loki: Allow custom value in operation selects

* Add missing operator
This commit is contained in:
Torkel Ödegaard
2022-03-17 12:55:47 +01:00
committed by GitHub
parent c224da0f02
commit 60af3af92c
2 changed files with 2 additions and 0 deletions
@@ -120,4 +120,5 @@ const operators = [
{ label: '=~', value: '=~' },
{ label: '=', value: '=' },
{ label: '!=', value: '!=' },
{ label: '!~', value: '!~' },
];
@@ -76,6 +76,7 @@ function SelectInputParamEditor({
value={valueOption}
options={selectOptions}
placeholder={paramDef.placeholder}
allowCustomValue={true}
onChange={(value) => onChange(index, value.value!)}
/>
);