Implement more meta-spaces (#7077)
This commit is contained in:
parent
dadac386fe
commit
5ad3261cb2
55 changed files with 970 additions and 353 deletions
|
@ -42,6 +42,7 @@ import ReducedMotionController from './controllers/ReducedMotionController';
|
|||
import IncompatibleController from "./controllers/IncompatibleController";
|
||||
import PseudonymousAnalyticsController from './controllers/PseudonymousAnalyticsController';
|
||||
import NewLayoutSwitcherController from './controllers/NewLayoutSwitcherController';
|
||||
import { MetaSpace } from "../stores/spaces";
|
||||
|
||||
// These are just a bunch of helper arrays to avoid copy/pasting a bunch of times
|
||||
const LEVELS_ROOM_SETTINGS = [
|
||||
|
@ -283,6 +284,16 @@ export const SETTINGS: {[setting: string]: ISetting} = {
|
|||
default: false,
|
||||
controller: new NewLayoutSwitcherController(),
|
||||
},
|
||||
"feature_spaces_metaspaces": {
|
||||
isFeature: true,
|
||||
supportedLevels: LEVELS_FEATURE,
|
||||
displayName: _td("Meta Spaces"),
|
||||
default: false,
|
||||
controller: new OrderedMultiController([
|
||||
new IncompatibleController("showCommunitiesInsteadOfSpaces"),
|
||||
new ReloadOnChangeController(),
|
||||
]),
|
||||
},
|
||||
"RoomList.backgroundImage": {
|
||||
supportedLevels: LEVELS_ACCOUNT_SETTINGS,
|
||||
default: null,
|
||||
|
@ -755,6 +766,15 @@ export const SETTINGS: {[setting: string]: ISetting} = {
|
|||
default: false,
|
||||
controller: new IncompatibleController("showCommunitiesInsteadOfSpaces", null),
|
||||
},
|
||||
"Spaces.enabledMetaSpaces": {
|
||||
supportedLevels: LEVELS_ACCOUNT_SETTINGS,
|
||||
default: {
|
||||
[MetaSpace.Home]: true,
|
||||
},
|
||||
controller: new IncompatibleController("feature_spaces_metaspaces", {
|
||||
[MetaSpace.Home]: true,
|
||||
}, false),
|
||||
},
|
||||
"showCommunitiesInsteadOfSpaces": {
|
||||
displayName: _td("Display Communities instead of Spaces"),
|
||||
description: _td("Temporarily show communities instead of Spaces for this session. " +
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue