From 148764aa8a8c23f282d7512956db515a7b64964f Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Fri, 19 Feb 2021 13:50:49 +0000 Subject: [PATCH] Create Labs flag for Spaces --- src/settings/Settings.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/settings/Settings.ts b/src/settings/Settings.ts index 9ad0e8987e..a8fa88179b 100644 --- a/src/settings/Settings.ts +++ b/src/settings/Settings.ts @@ -120,6 +120,13 @@ export interface ISetting { } export const SETTINGS: {[setting: string]: ISetting} = { + "feature_spaces": { + isFeature: true, + displayName: _td("Spaces prototype. Incompatible with Communities, Communities v2 and Custom Tags"), + supportedLevels: LEVELS_FEATURE, + default: false, + controller: new ReloadOnChangeController(), + }, "feature_latex_maths": { isFeature: true, displayName: _td("Render LaTeX maths in messages"), @@ -134,6 +141,7 @@ export const SETTINGS: {[setting: string]: ISetting} = { ), supportedLevels: LEVELS_FEATURE, default: false, + controller: new IncompatibleController("feature_spaces"), }, "feature_new_spinner": { isFeature: true, @@ -159,6 +167,7 @@ export const SETTINGS: {[setting: string]: ISetting} = { displayName: _td("Group & filter rooms by custom tags (refresh to apply changes)"), supportedLevels: LEVELS_FEATURE, default: false, + controller: new IncompatibleController("feature_spaces"), }, "feature_state_counters": { isFeature: true, @@ -733,6 +742,7 @@ export const SETTINGS: {[setting: string]: ISetting} = { [UIFeature.Communities]: { supportedLevels: LEVELS_UI_FEATURE, default: true, + controller: new IncompatibleController("feature_spaces"), }, [UIFeature.AdvancedSettings]: { supportedLevels: LEVELS_UI_FEATURE,