Add mechanism for disabling Betas

This commit is contained in:
Michael Telatynski
2021-04-30 12:30:05 +01:00
parent 158a0f90cb
commit d2959e1acc
2 changed files with 10 additions and 2 deletions
+6 -1
View File
@@ -258,7 +258,12 @@ export default class SettingsStore {
}
public static getBetaInfo(settingName: string) {
return SETTINGS[settingName]?.betaInfo;
// consider a beta disabled if the config is explicitly set to false, in which case treat as normal Labs flag
if (SettingsStore.isFeature(settingName)
&& SettingsStore.getValueAt(SettingLevel.CONFIG, settingName, null, true, true) !== false
) {
return SETTINGS[settingName]?.betaInfo;
}
}
/**