-
Notifications
You must be signed in to change notification settings - Fork 2.7k
loader for user modals #630
loader for user modals #630
Conversation
2dcf8e2
to
9704e22
Compare
@jasonblais Done with my changes |
Thanks @sudheerDev, can you help me understand the details of this change so we can test it? |
@esethna This PR add's a loader for more direct messages modal |
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.
Awesome, thanks @sudheerDev!
} else { | ||
this.props.actions.getProfilesInTeam(TeamStore.getCurrentId(), 0, USERS_PER_PAGE * 2); | ||
this.props.actions.getProfilesInTeam(TeamStore.getCurrentId(), 0, USERS_PER_PAGE * 2).then(() => { | ||
this.toggleChannelLoadingState(); |
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.
Why not just passed a value (true or false) instead of passing undefined
? Maybe like
this.setChannelLoadingState(!this.state.loadingChannels);
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.
LGTM, just minor comments, thanks!
} else { | ||
this.props.actions.getProfilesInTeam(page + 1, USERS_PER_PAGE); | ||
this.props.actions.getProfilesInTeam(page + 1, USERS_PER_PAGE).then(() => { |
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.
Does the getProfilesInTeam
first argument should be teamId
(ref)?
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.
Yes, It should be.
@@ -175,9 +186,13 @@ export default class MoreDirectChannels extends React.Component { | |||
handlePageChange(page, prevPage) { | |||
if (page > prevPage) { | |||
if (this.listType === 'any') { |
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.
This has similar signature as above (LOC 80-88). Might be better to be on it's own function.
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.
LGTM other than @saturninoabril's comments
@saturninoabril Been a little occupied. Will address the comments soon |
@sudheerDev No problem, thanks! |
* Fix loader for search in all multiselect modals
73fd960
to
76f323c
Compare
I added a couple of loaders |
|
Spinmint test server created at: http:https://i-0ff4478082770a529.spinmint.com Test Admin Account: Email: Test User Account: Email: Instance ID: i-0ff4478082770a529 |
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.
Looks good to me, thanks @sudheerDev!
Spinmint test server destroyed |
No problem, Let me know if you find issues in this. I can help out. |
I did a quick test and it still looks good. We'll have it battle-tested at pre-release :). Thanks! |
Summary
Adding loader for users modal
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]
make check-style
to check for style errors (required for all pull requests)make test
to ensure unit and component tests passed