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

[Debugger Plugin] Remove "Refresh" Button from Value Cards #1017

Merged
merged 1 commit into from
Mar 5, 2018
Merged

[Debugger Plugin] Remove "Refresh" Button from Value Cards #1017

merged 1 commit into from
Mar 5, 2018

Conversation

caisq
Copy link
Contributor

@caisq caisq commented Mar 5, 2018

  • Instead, bind the refresh() method to on-change events of the
    Slicing and Time Indices input boxes.

* Instead, bind the refresh() method to on-change events of the
  Slicing and Time Indices input boxes.
Copy link
Member

@chihuahua chihuahua left a comment

Choose a reason for hiding this comment

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

Looks great to me. If we need better performance in the future, we could always debounce ie,

on-change="requestRefresh"
...
refreshPending: Boolean,
...
requestRefresh() {
  if (this.refreshPending) {
    return;
  }
  this.set('refreshPending', true);

  this.async(() => {
    this.set('refreshPending', false);
    this.refresh();
  }, 300);
},

@chihuahua chihuahua merged commit e0957ba into tensorflow:master Mar 5, 2018
@caisq
Copy link
Contributor Author

caisq commented Mar 5, 2018

Got it! Thanks!

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