-
Notifications
You must be signed in to change notification settings - Fork 3
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
feat: add reload table button #450
Conversation
const reloadData = () => { | ||
indexerLogsRef.current.innerHTML = ""; | ||
setTimeout(() => { | ||
initializeTable(); |
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.
Would this reset the pagination?
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.
It empties the dom element that represents the table, and then re-renders it thus reseting the table.
if you are on page 6 and reload, you'll be reset back to page 0
@@ -29,6 +29,7 @@ const LogButtons = ({ | |||
setHeights, | |||
latestHeight, | |||
isUserIndexer, | |||
reloadData |
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.
nit: Should this be called Reload Logs instead?
Also, this is an awesome feature. I'm very happy to see it! |
Adds a button to refresh the logs from indexer logs page.