Add a few more UIComponent flags, and ensure they are used in existing code (#7937)
* UIComponent flag: Explore rooms To disable the room directory access on the Home space. Can be controlled with the existing ComponentVisibilityCustomisation * Make "plus menu" respect component visibility * UIComponent flag: Add integrations To disable the widgets section of the room info card and addwidget slashcommand. Can be controlled with the existing ComponentVisibilityCustomisation * Make sure invite users component applies to space rooms too * Appease the linter
This commit is contained in:
parent
d304e24a45
commit
f882466329
7 changed files with 83 additions and 18 deletions
|
@ -36,7 +36,33 @@ export enum UIFeature {
|
|||
}
|
||||
|
||||
export enum UIComponent {
|
||||
/**
|
||||
* Components that lead to a user being invited.
|
||||
*/
|
||||
InviteUsers = "UIComponent.sendInvites",
|
||||
|
||||
/**
|
||||
* Components that lead to a room being created that aren't already
|
||||
* guarded by some other condition (ie: "only if you can edit this
|
||||
* space" is *not* guarded by this component, but "start DM" is).
|
||||
*/
|
||||
CreateRooms = "UIComponent.roomCreation",
|
||||
|
||||
/**
|
||||
* Components that lead to a Space being created that aren't already
|
||||
* guarded by some other condition (ie: "only if you can add subspaces"
|
||||
* is *not* guarded by this component, but "create new space" is).
|
||||
*/
|
||||
CreateSpaces = "UIComponent.spaceCreation",
|
||||
|
||||
/**
|
||||
* Components that lead to the public room directory.
|
||||
*/
|
||||
ExploreRooms = "UIComponent.exploreRooms",
|
||||
|
||||
/**
|
||||
* Components that lead to the user being able to easily add widgets
|
||||
* and integrations to the room, such as from the room information card.
|
||||
*/
|
||||
AddIntegrations = "UIComponent.addIntegrations",
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue