Only show Search button in RoomSummaryCard if new room UI enabled (#11524)
* Only show Search button in RoomSummaryCard if new room UI enabled * Update snapshotpull/28217/head
parent
bf68e4afb6
commit
7b62abc14b
|
@ -343,6 +343,7 @@ const RoomSummaryCard: React.FC<IProps> = ({ room, permalinkCreator, onClose, on
|
||||||
{_t("common|people")}
|
{_t("common|people")}
|
||||||
<span className="mx_BaseCard_Button_sublabel">{memberCount}</span>
|
<span className="mx_BaseCard_Button_sublabel">{memberCount}</span>
|
||||||
</Button>
|
</Button>
|
||||||
|
{SettingsStore.getValue("feature_new_room_decoration_ui") && (
|
||||||
<Button
|
<Button
|
||||||
className="mx_RoomSummaryCard_icon_search"
|
className="mx_RoomSummaryCard_icon_search"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
|
@ -351,6 +352,7 @@ const RoomSummaryCard: React.FC<IProps> = ({ room, permalinkCreator, onClose, on
|
||||||
>
|
>
|
||||||
{_t("Search")}
|
{_t("Search")}
|
||||||
</Button>
|
</Button>
|
||||||
|
)}
|
||||||
{!isVideoRoom && (
|
{!isVideoRoom && (
|
||||||
<Button className="mx_RoomSummaryCard_icon_files" onClick={onRoomFilesClick}>
|
<Button className="mx_RoomSummaryCard_icon_files" onClick={onRoomFilesClick}>
|
||||||
{_t("Files")}
|
{_t("Files")}
|
||||||
|
|
|
@ -69,13 +69,6 @@ exports[`<RoomSummaryCard /> renders the room summary 1`] = `
|
||||||
0
|
0
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div
|
|
||||||
class="mx_AccessibleButton mx_BaseCard_Button mx_RoomSummaryCard_Button mx_RoomSummaryCard_icon_search"
|
|
||||||
role="button"
|
|
||||||
tabindex="0"
|
|
||||||
>
|
|
||||||
Search
|
|
||||||
</div>
|
|
||||||
<div
|
<div
|
||||||
class="mx_AccessibleButton mx_BaseCard_Button mx_RoomSummaryCard_Button mx_RoomSummaryCard_icon_files"
|
class="mx_AccessibleButton mx_BaseCard_Button mx_RoomSummaryCard_Button mx_RoomSummaryCard_icon_files"
|
||||||
role="button"
|
role="button"
|
||||||
|
|
Loading…
Reference in New Issue