You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-24 06:02:08 +03:00
Disable "Add a Room" button for when we have a room picker
This commit is contained in:
@ -57,7 +57,6 @@ const CategoryRoomList = React.createClass({
|
|||||||
},
|
},
|
||||||
|
|
||||||
render: function() {
|
render: function() {
|
||||||
const TintableSvg = sdk.getComponent("elements.TintableSvg");
|
|
||||||
const roomNodes = this.props.rooms.map((r) => {
|
const roomNodes = this.props.rooms.map((r) => {
|
||||||
return <FeaturedRoom key={r.room_id} summaryInfo={r} />;
|
return <FeaturedRoom key={r.room_id} summaryInfo={r} />;
|
||||||
});
|
});
|
||||||
@ -69,13 +68,15 @@ const CategoryRoomList = React.createClass({
|
|||||||
return <div className="mx_GroupView_featuredThings_container">
|
return <div className="mx_GroupView_featuredThings_container">
|
||||||
{catHeader}
|
{catHeader}
|
||||||
{roomNodes}
|
{roomNodes}
|
||||||
<AccessibleButton className="mx_GroupView_featuredThings_addButton">
|
|
||||||
<TintableSvg src="img/icons-create-room.svg" width="64" height="64"/>
|
|
||||||
<div className="mx_GroupView_featuredThings_addButton_label">
|
|
||||||
{_t('Add a Room')}
|
|
||||||
</div>
|
|
||||||
</AccessibleButton>
|
|
||||||
</div>;
|
</div>;
|
||||||
|
// TODO: Modify UserPickerDialog to allow picking of rooms, and then use it here
|
||||||
|
// const TintableSvg = sdk.getComponent("elements.TintableSvg");
|
||||||
|
// <AccessibleButton className="mx_GroupView_featuredThings_addButton">
|
||||||
|
// <TintableSvg src="img/icons-create-room.svg" width="64" height="64"/>
|
||||||
|
// <div className="mx_GroupView_featuredThings_addButton_label">
|
||||||
|
// {_t('Add a Room')}
|
||||||
|
// </div>
|
||||||
|
// </AccessibleButton>
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user