Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
2a4b10a5
Commit
2a4b10a5
authored
Feb 01, 2019
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor fix
parent
740e1a05
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
public/app/plugins/datasource/loki/components/LokiQueryEditor.tsx
+8
-4
public/sass/components/_slate_editor.scss
+1
-0
No files found.
public/app/plugins/datasource/loki/components/LokiQueryEditor.tsx
View file @
2a4b10a5
...
...
@@ -50,7 +50,6 @@ export class LokiQueryEditor extends PureComponent<Props> {
const
formatOptions
:
SelectOptionItem
[]
=
[
{
label
:
'Time Series'
,
value
:
'time_series'
},
{
label
:
'Table'
,
value
:
'table'
},
{
label
:
'Logs'
,
value
:
'logs'
},
];
query
.
resultFormat
=
query
.
resultFormat
||
'time_series'
;
...
...
@@ -64,9 +63,14 @@ export class LokiQueryEditor extends PureComponent<Props> {
onQueryChange=
{
this
.
onFieldChange
}
onPressEnter=
{
this
.
onRunQuery
}
/>
<
div
className=
"gf-form"
>
<
div
className=
"gf-form-label"
>
Format as
</
div
>
<
Select
isSearchable=
{
false
}
options=
{
formatOptions
}
onChange=
{
this
.
onFormatChanged
}
value=
{
currentFormat
}
/>
<
div
className=
"gf-form-inline"
>
<
div
className=
"gf-form"
>
<
div
className=
"gf-form-label"
>
Format as
</
div
>
<
Select
isSearchable=
{
false
}
options=
{
formatOptions
}
onChange=
{
this
.
onFormatChanged
}
value=
{
currentFormat
}
/>
</
div
>
<
div
className=
"gf-form gf-form--grow"
>
<
div
className=
"gf-form-label gf-form-label--grow"
/>
</
div
>
</
div
>
</
div
>
);
...
...
public/sass/components/_slate_editor.scss
View file @
2a4b10a5
...
...
@@ -19,6 +19,7 @@
border
:
$panel-border
;
border-radius
:
$border-radius
;
transition
:
all
0
.3s
;
line-height
:
$input-line-height
;
}
.slate-query-field__wrapper--disabled
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment