-
Notifications
You must be signed in to change notification settings - Fork 843
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[EuiSuperDatePicker] add showRefreshOnly prop #1412
Conversation
@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 |
There was a problem hiding this 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.
@@ -80,24 +119,12 @@ export default class extends Component { | |||
onRefreshChange={this.onRefreshChange} | |||
recentlyUsedRanges={this.state.recentlyUsedRanges} | |||
showUpdateButton={this.state.showUpdateButton} | |||
showRefreshOnly={this.state.showRefreshOnly} |
There was a problem hiding this comment.
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
?
@@ -59,6 +60,10 @@ export class EuiSuperDatePicker extends Component { | |||
* Set showUpdateButton to false to immediately invoke onTimeChange for all start and end changes. | |||
*/ | |||
showUpdateButton: PropTypes.bool, | |||
/** | |||
* |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, thank you!
Adds showRefreshOnly prop to EuiSuperDatePicker. When set to true, only the refresh interval and isPaused can be modified