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
236d7b12
Commit
236d7b12
authored
Jan 09, 2019
by
Hugo Häggmark
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changes after PR comments
parent
67e8958a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
14 deletions
+8
-14
public/app/features/alerting/TestRuleButton.tsx
+5
-9
public/app/features/alerting/__snapshots__/TestRuleButton.test.tsx.snap
+2
-4
public/app/features/dashboard/dashgrid/EditorTabBody.tsx
+1
-1
No files found.
public/app/features/alerting/TestRuleButton.tsx
View file @
236d7b12
...
...
@@ -15,10 +15,10 @@ interface State {
}
export
class
TestRuleButton
extends
PureComponent
<
Props
,
State
>
{
constructor
(
props
)
{
super
(
props
);
t
his
.
state
=
{
isLoading
:
false
,
testRuleResponse
:
{}
};
}
readonly
state
:
State
=
{
isLoading
:
false
,
t
estRuleResponse
:
{},
}
;
componentDidMount
()
{
this
.
testRule
();
...
...
@@ -39,10 +39,6 @@ export class TestRuleButton extends PureComponent<Props, State> {
return
<
LoadingPlaceholder
text=
"Evaluating rule"
/>;
}
return
(
<>
<
JSONFormatter
json=
{
testRuleResponse
}
/>
</>
);
return
<
JSONFormatter
json=
{
testRuleResponse
}
/>;
}
}
public/app/features/alerting/__snapshots__/TestRuleButton.test.tsx.snap
View file @
236d7b12
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Render should render component 1`] = `
<Fragment>
<JSONFormatter
<JSONFormatter
config={
Object {
"animateOpen": true,
...
...
@@ -10,6 +9,5 @@ exports[`Render should render component 1`] = `
}
json={Object {}}
open={3}
/>
</Fragment>
/>
`;
public/app/features/dashboard/dashgrid/EditorTabBody.tsx
View file @
236d7b12
...
...
@@ -52,7 +52,7 @@ export class EditorTabBody extends PureComponent<Props, State> {
onToggleToolBarView
=
(
item
:
EditorToolbarView
)
=>
{
this
.
setState
({
openView
:
item
,
isOpen
:
this
.
state
.
openView
!==
item
?
true
:
!
this
.
state
.
isOpen
,
isOpen
:
this
.
state
.
openView
!==
item
||
!
this
.
state
.
isOpen
,
});
};
...
...
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