Skip to content

Commit

Permalink
MM-18157 - added loading screen to members modal (mattermost#3725)
Browse files Browse the repository at this point in the history
* added loading screen to members modal

* removed div

* Fix import
  • Loading branch information
jordeguevara authored and ashishmahi committed Oct 30, 2019
1 parent 51fcac4 commit faf3eb7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion components/member_list_channel/member_list_channel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import * as UserAgent from 'utils/user_agent';

import ChannelMembersDropdown from 'components/channel_members_dropdown';
import SearchableUserList from 'components/searchable_user_list/searchable_user_list_container.jsx';

import LoadingScreen from 'components/loading_screen';
const USERS_PER_PAGE = 50;

export default class MemberListChannel extends React.PureComponent {
Expand Down Expand Up @@ -109,6 +109,9 @@ export default class MemberListChannel extends React.PureComponent {
}

render() {
if (this.state.loading) {
return (<LoadingScreen/>);
}
const channelIsArchived = this.props.channel.delete_at !== 0;
return (
<SearchableUserList
Expand Down

0 comments on commit faf3eb7

Please sign in to comment.