WIP: Add url param to define which userlist render
This commit is contained in:
parent
0448ad8043
commit
7ed216888c
@ -11,7 +11,9 @@ import WhiteboardService from '/imports/ui/components/whiteboard/service';
|
|||||||
import Meetings from '/imports/api/meetings';
|
import Meetings from '/imports/api/meetings';
|
||||||
import UserListParticipants from './user-list-participants/component';
|
import UserListParticipants from './user-list-participants/component';
|
||||||
|
|
||||||
window.showOldUserList = false;
|
const queryString = window.location.search;
|
||||||
|
const urlParams = new URLSearchParams(queryString);
|
||||||
|
const userList = urlParams.get('userList');
|
||||||
const UserParticipantsContainer = (props) => {
|
const UserParticipantsContainer = (props) => {
|
||||||
const {
|
const {
|
||||||
formatUsers,
|
formatUsers,
|
||||||
@ -74,9 +76,22 @@ const Container = withTracker(() => {
|
|||||||
})(UserParticipantsContainer);
|
})(UserParticipantsContainer);
|
||||||
const blank = () => (
|
const blank = () => (
|
||||||
<>
|
<>
|
||||||
{window.showOldUserList ? <UserListParticipants /> : null }
|
{
|
||||||
|
(
|
||||||
|
userList === 'graphql'
|
||||||
|
|| userList === 'both'
|
||||||
|
|| !userList
|
||||||
|
) ? <UserListParticipants />
|
||||||
|
: null
|
||||||
|
}
|
||||||
<br />
|
<br />
|
||||||
<Container />
|
{
|
||||||
|
(
|
||||||
|
userList === 'meteor'
|
||||||
|
|| userList === 'both'
|
||||||
|
) ? <Container />
|
||||||
|
: null
|
||||||
|
}
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
export default blank;
|
export default blank;
|
||||||
|
Loading…
Reference in New Issue
Block a user