mirror of
https://github.com/vector-im/element-web.git
synced 2025-12-06 18:01:38 +01:00
Add ability to the room view to hide widgets (#31400)
* add hideWidgets prop * Trigger Build
This commit is contained in:
parent
dc67863cbc
commit
bfc2c884bc
@ -185,6 +185,11 @@ interface IRoomProps extends RoomViewProps {
|
|||||||
* If true, hide the pinned messages banner
|
* If true, hide the pinned messages banner
|
||||||
*/
|
*/
|
||||||
hidePinnedMessageBanner?: boolean;
|
hidePinnedMessageBanner?: boolean;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* If true, hide the widgets
|
||||||
|
*/
|
||||||
|
hideWidgets?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export { MainSplitContentType };
|
export { MainSplitContentType };
|
||||||
@ -897,6 +902,7 @@ export class RoomView extends React.Component<IRoomProps, IRoomState> {
|
|||||||
|
|
||||||
private shouldShowApps(room: Room): boolean {
|
private shouldShowApps(room: Room): boolean {
|
||||||
if (!BROWSER_SUPPORTS_SANDBOX || !room) return false;
|
if (!BROWSER_SUPPORTS_SANDBOX || !room) return false;
|
||||||
|
if (this.props.hideWidgets) return false;
|
||||||
|
|
||||||
// Check if user has previously chosen to hide the app drawer for this
|
// Check if user has previously chosen to hide the app drawer for this
|
||||||
// room. If so, do not show apps
|
// room. If so, do not show apps
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user