Merge pull request #12215 from vitormateusalmeida/issue-12143
Fix layout broken when close waiting room panel
This commit is contained in:
commit
9dba4f6dab
@ -30,6 +30,8 @@ class WaitingUsers extends PureComponent {
|
|||||||
? 'userlist'
|
? 'userlist'
|
||||||
: 'waitingUsersPanel',
|
: 'waitingUsersPanel',
|
||||||
);
|
);
|
||||||
|
|
||||||
|
window.dispatchEvent(new Event('panelChanged'));
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
@ -153,7 +153,10 @@ const WaitingUsers = (props) => {
|
|||||||
authenticatedUsers,
|
authenticatedUsers,
|
||||||
guestUsers,
|
guestUsers,
|
||||||
} = props;
|
} = props;
|
||||||
if (!authenticatedUsers.length && !guestUsers.length) Session.set('openPanel', 'userlist');
|
if (!authenticatedUsers.length && !guestUsers.length) {
|
||||||
|
Session.set('openPanel', 'userlist');
|
||||||
|
window.dispatchEvent(new Event('panelChanged'));
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const {
|
const {
|
||||||
@ -239,6 +242,7 @@ const WaitingUsers = (props) => {
|
|||||||
<Button
|
<Button
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
Session.set('openPanel', 'userlist');
|
Session.set('openPanel', 'userlist');
|
||||||
|
window.dispatchEvent(new Event('panelChanged'));
|
||||||
}}
|
}}
|
||||||
label={intl.formatMessage(intlMessages.title)}
|
label={intl.formatMessage(intlMessages.title)}
|
||||||
icon="left_arrow"
|
icon="left_arrow"
|
||||||
|
Loading…
Reference in New Issue
Block a user