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

mgr/dashboard: Load the datatable content on component initialization #21595

Merged
merged 1 commit into from Apr 24, 2018

Conversation

votdev
Copy link
Member

@votdev votdev commented Apr 23, 2018

If autoReload is disabled the data table content is not loaded at least once anymore when the component is initialized. This PR will fix that. Additionally useless code has been removed in the unit test.

The _.isIniteger() test has been introduced to validate the input. If you do not use property binding, e.g. autoReload="false" the autoReload code path is still executed because autoReload contains "false" (a quoted string) then which is not an expected and correct value here.

Signed-off-by: Volker Theile vtheile@suse.com

…ialized.

Signed-off-by: Volker Theile <vtheile@suse.com>
Copy link
Contributor

@ricardoasmarques ricardoasmarques left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link

@Devp00l Devp00l left a comment

Choose a reason for hiding this comment

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

lgtm

@tchaikov tchaikov merged commit 82ecf64 into ceph:master Apr 24, 2018
@votdev votdev deleted the load_on_init branch April 26, 2018 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants