Skip to content

Conversation

@nreese
Copy link
Contributor

@nreese nreese commented Jan 7, 2019

Adds showRefreshOnly prop to EuiSuperDatePicker. When set to true, only the refresh interval and isPaused can be modified

screen shot 2019-01-07 at 3 28 58 pm

@nreese
Copy link
Contributor Author

nreese commented Jan 7, 2019

@cchaos Here is the prop we talked about that turns the EuiSuperDatePicker into just an interval UI. What do you think?

Below are some screen shots of what Kibana looks like when there is no time picker. This component would replace this view

screen shot 2019-01-07 at 3 31 59 pm

screen shot 2019-01-07 at 3 32 10 pm

screen shot 2019-01-07 at 3 32 18 pm

Copy link
Contributor

@cchaos cchaos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding this, I almost completely forgot about it. I had just a couple code comments and I created a PR against yours mainly altering some of the aesthetics.

nreese#4

onRefreshChange={this.onRefreshChange}
recentlyUsedRanges={this.state.recentlyUsedRanges}
showUpdateButton={this.state.showUpdateButton}
showRefreshOnly={this.state.showRefreshOnly}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This prop name is confusing because I think that's it's referring to the Update/Refresh button. Can you rename to isAutoRefreshOnly?

*/
showUpdateButton: PropTypes.bool,
/**
*
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a documentation comment here explaining what the prop does?

Copy link
Contributor

@cchaos cchaos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thank you!

@nreese nreese merged commit a20048f into elastic:master Jan 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants