Show filterContainer if "UIComponent.filterContainer" is enabled (#10381)
Signed-off-by: Mikhail Aheichyk <mikhail.aheichyk@nordeck.net> Co-authored-by: Mikhail Aheichyk <mikhail.aheichyk@nordeck.net>
This commit is contained in:
co-authored by
Mikhail Aheichyk
parent
22451901d1
commit
d4b81882e5
@@ -393,7 +393,7 @@ export default class LeftPanel extends React.Component<IProps, IState> {
|
||||
return (
|
||||
<div className={containerClasses}>
|
||||
<div className="mx_LeftPanel_roomListContainer">
|
||||
{this.renderSearchDialExplore()}
|
||||
{shouldShowComponent(UIComponent.FilterContainer) && this.renderSearchDialExplore()}
|
||||
{this.renderBreadcrumbs()}
|
||||
{!this.props.isMinimized && <RoomListHeader onVisibilityChange={this.refreshStickyHeaders} />}
|
||||
<UserOnboardingButton
|
||||
|
||||
@@ -64,4 +64,9 @@ export enum UIComponent {
|
||||
* and integrations to the room, such as from the room information card.
|
||||
*/
|
||||
AddIntegrations = "UIComponent.addIntegrations",
|
||||
|
||||
/**
|
||||
* Component that lead to the user being able to search, dial, explore rooms
|
||||
*/
|
||||
FilterContainer = "UIComponent.filterContainer",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user