When looking at a MemberInfo, clicking on MemberList should close not switch
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>pull/21833/head
parent
fb754b795c
commit
4118faa834
|
@ -66,8 +66,13 @@ export default class GroupHeaderButtons extends HeaderButtons {
|
||||||
}
|
}
|
||||||
|
|
||||||
_onMembersClicked() {
|
_onMembersClicked() {
|
||||||
// This toggles for us, if needed
|
if (this.state.phase === RIGHT_PANEL_PHASES.GroupMemberInfo) {
|
||||||
this.setPhase(RIGHT_PANEL_PHASES.GroupMemberList);
|
// send the active phase to trigger a toggle
|
||||||
|
this.setPhase(RIGHT_PANEL_PHASES.GroupMemberInfo);
|
||||||
|
} else {
|
||||||
|
// This toggles for us, if needed
|
||||||
|
this.setPhase(RIGHT_PANEL_PHASES.GroupMemberList);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
_onRoomsClicked() {
|
_onRoomsClicked() {
|
||||||
|
|
|
@ -56,8 +56,13 @@ export default class RoomHeaderButtons extends HeaderButtons {
|
||||||
}
|
}
|
||||||
|
|
||||||
_onMembersClicked() {
|
_onMembersClicked() {
|
||||||
// This toggles for us, if needed
|
if (this.state.phase === RIGHT_PANEL_PHASES.RoomMemberInfo) {
|
||||||
this.setPhase(RIGHT_PANEL_PHASES.RoomMemberList);
|
// send the active phase to trigger a toggle
|
||||||
|
this.setPhase(RIGHT_PANEL_PHASES.RoomMemberInfo);
|
||||||
|
} else {
|
||||||
|
// This toggles for us, if needed
|
||||||
|
this.setPhase(RIGHT_PANEL_PHASES.RoomMemberList);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
_onFilesClicked() {
|
_onFilesClicked() {
|
||||||
|
|
Loading…
Reference in New Issue