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
7f04848d
Commit
7f04848d
authored
Feb 19, 2019
by
Hugo Häggmark
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #15505
parent
1eb804c6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
16 deletions
+21
-16
packages/grafana-ui/src/components/ThresholdsEditor/ThresholdsEditor.tsx
+20
-15
packages/grafana-ui/src/components/ThresholdsEditor/_ThresholdsEditor.scss
+1
-1
No files found.
packages/grafana-ui/src/components/ThresholdsEditor/ThresholdsEditor.tsx
View file @
7f04848d
...
@@ -159,8 +159,6 @@ export class ThresholdsEditor extends PureComponent<Props, State> {
...
@@ -159,8 +159,6 @@ export class ThresholdsEditor extends PureComponent<Props, State> {
};
};
renderInput
=
(
threshold
:
Threshold
)
=>
{
renderInput
=
(
threshold
:
Threshold
)
=>
{
const
value
=
threshold
.
index
===
0
?
'Base'
:
threshold
.
value
;
return
(
return
(
<
div
className=
"thresholds-row-input-inner"
>
<
div
className=
"thresholds-row-input-inner"
>
<
span
className=
"thresholds-row-input-inner-arrow"
/>
<
span
className=
"thresholds-row-input-inner-arrow"
/>
...
@@ -171,21 +169,28 @@ export class ThresholdsEditor extends PureComponent<Props, State> {
...
@@ -171,21 +169,28 @@ export class ThresholdsEditor extends PureComponent<Props, State> {
</
div
>
</
div
>
)
}
)
}
</
div
>
</
div
>
<
div
className=
"thresholds-row-input-inner-value"
>
{
threshold
.
index
===
0
&&
(
<
input
<
div
className=
"thresholds-row-input-inner-value"
>
type=
"number"
<
input
type=
"text"
value=
"Base"
readOnly
/>
step=
"0.0001"
onChange=
{
event
=>
this
.
onChangeThresholdValue
(
event
,
threshold
)
}
value=
{
value
}
onBlur=
{
this
.
onBlur
}
readOnly=
{
threshold
.
index
===
0
}
/>
</
div
>
{
threshold
.
index
>
0
&&
(
<
div
className=
"thresholds-row-input-inner-remove"
onClick=
{
()
=>
this
.
onRemoveThreshold
(
threshold
)
}
>
<
i
className=
"fa fa-times"
/>
</
div
>
</
div
>
)
}
)
}
{
threshold
.
index
>
0
&&
(
<>
<
div
className=
"thresholds-row-input-inner-value"
>
<
input
type=
"number"
step=
"0.0001"
onChange=
{
event
=>
this
.
onChangeThresholdValue
(
event
,
threshold
)
}
value=
{
threshold
.
value
}
onBlur=
{
this
.
onBlur
}
readOnly=
{
threshold
.
index
===
0
}
/>
</
div
>
<
div
className=
"thresholds-row-input-inner-remove"
onClick=
{
()
=>
this
.
onRemoveThreshold
(
threshold
)
}
>
<
i
className=
"fa fa-times"
/>
</
div
>
</>
)
}
</
div
>
</
div
>
);
);
};
};
...
...
packages/grafana-ui/src/components/ThresholdsEditor/_ThresholdsEditor.scss
View file @
7f04848d
...
@@ -43,7 +43,7 @@
...
@@ -43,7 +43,7 @@
}
}
.thresholds-row-input
{
.thresholds-row-input
{
margin-top
:
4
9
px
;
margin-top
:
4
4
px
;
margin-left
:
2px
;
margin-left
:
2px
;
}
}
...
...
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