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 loading indicator for select #1716

Merged
merged 11 commits into from
Nov 5, 2019

Conversation

sarahd93
Copy link
Contributor

Checklist:

@sarahd93 sarahd93 marked this pull request as ready for review October 23, 2019 14:43
Copy link
Contributor

@bjoernricks bjoernricks left a comment

Choose a reason for hiding this comment

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

The isXyzLoading should be received from the redux store via mapStateToProps and selector.isLoadingEntities(filter) instead of the promise. Using the promise may show the wrong isLoading state because the promise resolved if we are already loading the entities at the moment but the response didn't arrive yet.

@sarahd93 sarahd93 force-pushed the task_dialog_gsa9 branch 2 times, most recently from 040f5ed to 1aeea24 Compare October 24, 2019 13:35
@sarahd93 sarahd93 requested a review from bjoernricks October 24, 2019 13:44
Copy link
Contributor

@bjoernricks bjoernricks left a comment

Choose a reason for hiding this comment

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

Sorry I did miss that last time, personally I would like to use isSomething for boolean properties. In that case it is obvious they expect true or false only. Hopefully I found all occurrences and changed loading to isLoading. Additionally the promise finally import should be obsolete now and a mapStateToProps function can be simplified. Despite being a number of changes this PR looks very good! Thanks a lot!

gsa/src/web/entities/page.js Outdated Show resolved Hide resolved
gsa/src/web/entities/page.js Outdated Show resolved Hide resolved
gsa/src/web/entities/page.js Outdated Show resolved Hide resolved
gsa/src/web/entities/page.js Outdated Show resolved Hide resolved
gsa/src/web/entities/page.js Outdated Show resolved Hide resolved
gsa/src/web/components/form/multiselect.js Outdated Show resolved Hide resolved
gsa/src/web/components/form/multiselect.js Outdated Show resolved Hide resolved
gsa/src/web/components/form/multiselect.js Outdated Show resolved Hide resolved
gsa/src/web/components/form/__tests__/select.js Outdated Show resolved Hide resolved
gsa/src/web/components/form/__tests__/multiselect.js Outdated Show resolved Hide resolved
@bjoernricks bjoernricks merged commit 8863131 into greenbone:gsa-9.0 Nov 5, 2019
@sarahd93 sarahd93 deleted the task_dialog_gsa9 branch November 11, 2019 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants