Skip to content

Commit

Permalink
Ensure time picker is actually disabled (#63709) (#64216)
Browse files Browse the repository at this point in the history
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
  • Loading branch information
chrisronline and elasticmachine authored Apr 22, 2020
1 parent e2262bf commit 595f213
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
name="monitoringMain.navName"
app-name="'monitoring'"
show-search-bar="true"
show-date-picker="true"
show-auto-refresh-only="!monitoringMain.datePicker.enableTimeFilter"
show-date-picker="monitoringMain.datePicker.enableTimeFilter"
date-range-from="monitoringMain.datePicker.timeRange.from"
date-range-to="monitoringMain.datePicker.timeRange.to"
is-refresh-paused="monitoringMain.datePicker.refreshInterval.pause"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ export class MonitoringMainController {
}

this.datePicker = {
enableTimeFilter: timefilter.isTimeRangeSelectorEnabled(),
timeRange: timefilter.getTime(),
refreshInterval: timefilter.getRefreshInterval(),
onRefreshChange: ({ isPaused, refreshInterval }, skipSet = false) => {
Expand Down

0 comments on commit 595f213

Please sign in to comment.