mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Loki: Show raw query and patterns only in query builder (#48049)
This commit is contained in:
parent
eb05f6ead8
commit
ce6aed21a7
@ -68,6 +68,8 @@ export const LokiQueryEditorSelector = React.memo<LokiQueryEditorProps>((props)
|
|||||||
onDismiss={() => setParseModalOpen(false)}
|
onDismiss={() => setParseModalOpen(false)}
|
||||||
/>
|
/>
|
||||||
<EditorHeader>
|
<EditorHeader>
|
||||||
|
{editorMode === QueryEditorMode.Builder && (
|
||||||
|
<>
|
||||||
<InlineSelect
|
<InlineSelect
|
||||||
value={null}
|
value={null}
|
||||||
placeholder="Query patterns"
|
placeholder="Query patterns"
|
||||||
@ -83,6 +85,8 @@ export const LokiQueryEditorSelector = React.memo<LokiQueryEditorProps>((props)
|
|||||||
options={lokiQueryModeller.getQueryPatterns().map((x) => ({ label: x.name, value: x }))}
|
options={lokiQueryModeller.getQueryPatterns().map((x) => ({ label: x.name, value: x }))}
|
||||||
/>
|
/>
|
||||||
<QueryHeaderSwitch label="Raw query" value={query.rawQuery} onChange={onQueryPreviewChange} />
|
<QueryHeaderSwitch label="Raw query" value={query.rawQuery} onChange={onQueryPreviewChange} />
|
||||||
|
</>
|
||||||
|
)}
|
||||||
<FlexItem grow={1} />
|
<FlexItem grow={1} />
|
||||||
<Button
|
<Button
|
||||||
variant={dataIsStale ? 'primary' : 'secondary'}
|
variant={dataIsStale ? 'primary' : 'secondary'}
|
||||||
|
Loading…
Reference in New Issue
Block a user