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
5d3ef4e5
Unverified
Commit
5d3ef4e5
authored
Jan 22, 2019
by
Torkel Ödegaard
Committed by
GitHub
Jan 22, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #14992 from grafana/hugoh/bug-explore-toggle-table-does-not-work
fix: Dispatch the correct action (#14985)
parents
db99b865
85838a40
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
public/app/features/explore/TableContainer.tsx
+4
-4
No files found.
public/app/features/explore/TableContainer.tsx
View file @
5d3ef4e5
...
@@ -5,7 +5,7 @@ import { connect } from 'react-redux';
...
@@ -5,7 +5,7 @@ import { connect } from 'react-redux';
import
{
ExploreId
,
ExploreItemState
}
from
'app/types/explore'
;
import
{
ExploreId
,
ExploreItemState
}
from
'app/types/explore'
;
import
{
StoreState
}
from
'app/types'
;
import
{
StoreState
}
from
'app/types'
;
import
{
toggle
Graph
}
from
'./state/actions'
;
import
{
toggle
Table
}
from
'./state/actions'
;
import
Table
from
'./Table'
;
import
Table
from
'./Table'
;
import
Panel
from
'./Panel'
;
import
Panel
from
'./Panel'
;
import
TableModel
from
'app/core/table_model'
;
import
TableModel
from
'app/core/table_model'
;
...
@@ -16,12 +16,12 @@ interface TableContainerProps {
...
@@ -16,12 +16,12 @@ interface TableContainerProps {
onClickCell
:
(
key
:
string
,
value
:
string
)
=>
void
;
onClickCell
:
(
key
:
string
,
value
:
string
)
=>
void
;
showingTable
:
boolean
;
showingTable
:
boolean
;
tableResult
?:
TableModel
;
tableResult
?:
TableModel
;
toggle
Graph
:
typeof
toggleGraph
;
toggle
Table
:
typeof
toggleTable
;
}
}
export
class
TableContainer
extends
PureComponent
<
TableContainerProps
>
{
export
class
TableContainer
extends
PureComponent
<
TableContainerProps
>
{
onClickTableButton
=
()
=>
{
onClickTableButton
=
()
=>
{
this
.
props
.
toggle
Graph
(
this
.
props
.
exploreId
);
this
.
props
.
toggle
Table
(
this
.
props
.
exploreId
);
};
};
render
()
{
render
()
{
...
@@ -43,7 +43,7 @@ function mapStateToProps(state: StoreState, { exploreId }) {
...
@@ -43,7 +43,7 @@ function mapStateToProps(state: StoreState, { exploreId }) {
}
}
const
mapDispatchToProps
=
{
const
mapDispatchToProps
=
{
toggle
Graph
,
toggle
Table
,
};
};
export
default
hot
(
module
)(
connect
(
mapStateToProps
,
mapDispatchToProps
)(
TableContainer
));
export
default
hot
(
module
)(
connect
(
mapStateToProps
,
mapDispatchToProps
)(
TableContainer
));
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