Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RadioObservatory
LOFAR
Commits
c917dbab
Commit
c917dbab
authored
6 years ago
by
Mattia Mancini
Browse files
Options
Downloads
Patches
Plain Diff
OSB-29
: listening to state change
parent
c3d7617e
No related branches found
No related tags found
2 merge requests
!89
Monitoring maintenance Epic branch merge
,
!1
Resolve OSB-13 "Monitoringmaintenance "
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
LCU/Maintenance/MDB_WebView/maintenancedb_view/src/components/StationStatistics.js
+6
-2
6 additions, 2 deletions
...ew/maintenancedb_view/src/components/StationStatistics.js
with
6 additions
and
2 deletions
LCU/Maintenance/MDB_WebView/maintenancedb_view/src/components/StationStatistics.js
+
6
−
2
View file @
c917dbab
...
@@ -27,7 +27,8 @@ class ToolBarC extends Component {
...
@@ -27,7 +27,8 @@ class ToolBarC extends Component {
<
option
value
=
"
S
"
>
StationTest
only
<
/option
>
<
option
value
=
"
S
"
>
StationTest
only
<
/option
>
<
/select
>
<
/select
>
<
Input
type
=
"
select
"
className
=
"
form-control custom-select custom-select-sm
"
<
Input
type
=
"
select
"
className
=
"
form-control custom-select custom-select-sm
"
onChange
=
{(
e
)
=>
this
.
setAveragingWindow
(
e
)}
>
onChange
=
{(
e
)
=>
this
.
setAveragingWindow
(
e
)}
value
=
{
this
.
props
.
averaging_window
}
>
<
option
value
=
{
1
}
>
day
<
/option
>
<
option
value
=
{
1
}
>
day
<
/option
>
<
option
value
=
{
7
}
>
week
<
/option
>
<
option
value
=
{
7
}
>
week
<
/option
>
<
option
value
=
{
30
}
>
month
<
/option
>
<
option
value
=
{
30
}
>
month
<
/option
>
...
@@ -37,6 +38,9 @@ class ToolBarC extends Component {
...
@@ -37,6 +38,9 @@ class ToolBarC extends Component {
}
}
}
}
const
mapStateToPropsToolBar
=
state
=>
{
return
{
...
state
.
landing_page
.
station_statistics
};
};
const
mapDispatchToPropsToolBar
=
{
const
mapDispatchToPropsToolBar
=
{
setStationStatisticsAveragingWindow
,
setStationStatisticsAveragingWindow
,
...
@@ -44,7 +48,7 @@ const mapDispatchToPropsToolBar = {
...
@@ -44,7 +48,7 @@ const mapDispatchToPropsToolBar = {
};
};
const
ToolBar
=
connect
(
null
,
mapDispatchToPropsToolBar
)(
ToolBarC
);
const
ToolBar
=
connect
(
mapStateToPropsToolBar
,
mapDispatchToPropsToolBar
)(
ToolBarC
);
class
StationStatisticsC
extends
Component
{
class
StationStatisticsC
extends
Component
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment