Skip to content
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

Add auto refresh to sysinfo frame #757

Merged
merged 2 commits into from
May 24, 2018

Conversation

pe4cey
Copy link
Contributor

@pe4cey pe4cey commented May 11, 2018

  • Adds manual refresh button to re-fetch data
  • Adds auto refresh button to status bar (20 seconds refresh rate)

refresh-sysinfo
Capture notes: Auto refresh interval set to 2 seconds for demo purposes. Background cypher is being executed to increase 'Node ID' value

componentDidUpdate (prevProps, prevState) {
if (prevState.autoRefresh !== this.state.autoRefresh) {
if (this.state.autoRefresh) {
console.log('update')
Copy link
Member

Choose a reason for hiding this comment

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

Debug code

this.setState({ autoRefresh: autoRefresh })

if (autoRefresh) {
console.log('refresh')
Copy link
Member

Choose a reason for hiding this comment

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

Debug code

StyledStatusBar,
AutoRefreshToggle,
RefreshQueriesButton,
AutoRefreshSpan,
StatusbarWrapper
} from './styled'
} from '../AutoRefresh/styled'
Copy link
Member

Choose a reason for hiding this comment

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

Nice re-use!

@oskarhane oskarhane merged commit 21288f8 into neo4j:master May 24, 2018
myzero1 pushed a commit to myzero1/neo4j-browser that referenced this pull request May 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants