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
5c3a0a62
Unverified
Commit
5c3a0a62
authored
Mar 29, 2019
by
Torkel Ödegaard
Committed by
GitHub
Mar 29, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix: Template query editor this bind exception fix (#16299)
Also fixes the default 100% width of inputs. Fixes #16298
parent
79b86466
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
37 additions
and
13 deletions
+37
-13
packages/grafana-ui/src/components/Input/Input.tsx
+1
-1
packages/grafana-ui/src/components/Input/__snapshots__/Input.test.tsx.snap
+7
-1
packages/grafana-ui/src/components/ThresholdsEditor/__snapshots__/ThresholdsEditor.test.tsx.snap
+7
-1
public/app/features/templating/DefaultVariableQueryEditor.tsx
+8
-8
public/app/plugins/datasource/stackdriver/components/__snapshots__/QueryEditor.test.tsx.snap
+14
-2
No files found.
packages/grafana-ui/src/components/Input/Input.tsx
View file @
5c3a0a62
...
...
@@ -72,7 +72,7 @@ export class Input extends PureComponent<Props> {
const
inputElementProps
=
this
.
populateEventPropsWithStatus
(
restProps
,
validationEvents
);
return
(
<
div
>
<
div
style=
{
{
flexGrow
:
1
}
}
>
<
input
{
...
inputElementProps
}
className=
{
inputClassName
}
/>
{
error
&&
!
hideErrorMessage
&&
<
span
>
{
error
}
</
span
>
}
</
div
>
...
...
packages/grafana-ui/src/components/Input/__snapshots__/Input.test.tsx.snap
View file @
5c3a0a62
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Input renders correctly 1`] = `
<div>
<div
style={
Object {
"flexGrow": 1,
}
}
>
<input
className="gf-form-input"
/>
...
...
packages/grafana-ui/src/components/ThresholdsEditor/__snapshots__/ThresholdsEditor.test.tsx.snap
View file @
5c3a0a62
...
...
@@ -467,7 +467,13 @@ exports[`Render should render with base threshold 1`] = `
type="text"
value="Base"
>
<div>
<div
style={
Object {
"flexGrow": 1,
}
}
>
<input
className="gf-form-input"
readOnly={true}
...
...
public/app/features/templating/DefaultVariableQueryEditor.tsx
View file @
5c3a0a62
...
...
@@ -8,13 +8,13 @@ export default class DefaultVariableQueryEditor extends PureComponent<VariableQu
this
.
state
=
{
value
:
props
.
query
};
}
handleChange
(
event
)
{
this
.
setState
({
value
:
event
.
t
arget
.
value
});
}
onChange
=
(
event
:
React
.
FormEvent
<
HTMLInputElement
>
)
=>
{
this
.
setState
({
value
:
event
.
currentT
arget
.
value
});
}
;
handleBlur
(
event
)
{
this
.
props
.
onChange
(
event
.
target
.
value
,
event
.
t
arget
.
value
);
}
onBlur
=
(
event
:
React
.
FormEvent
<
HTMLInputElement
>
)
=>
{
this
.
props
.
onChange
(
event
.
currentTarget
.
value
,
event
.
currentT
arget
.
value
);
}
;
render
()
{
return
(
...
...
@@ -24,8 +24,8 @@ export default class DefaultVariableQueryEditor extends PureComponent<VariableQu
type=
"text"
className=
"gf-form-input"
value=
{
this
.
state
.
value
}
onChange=
{
this
.
handle
Change
}
onBlur=
{
this
.
handle
Blur
}
onChange=
{
this
.
on
Change
}
onBlur=
{
this
.
on
Blur
}
placeholder=
"metric name or tags query"
required
/>
...
...
public/app/plugins/datasource/stackdriver/components/__snapshots__/QueryEditor.test.tsx.snap
View file @
5c3a0a62
...
...
@@ -398,7 +398,13 @@ Array [
>
Alias By
</label>
<div>
<div
style={
Object {
"flexGrow": 1,
}
}
>
<input
className="gf-form-input gf-form-input width-24"
onChange={[Function]}
...
...
@@ -426,7 +432,13 @@ Array [
>
Project
</span>
<div>
<div
style={
Object {
"flexGrow": 1,
}
}
>
<input
className="gf-form-input gf-form-input width-15"
disabled={true}
...
...
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