Fix the enableLabs flag, again

We were showing the options but ignoring them
This commit is contained in:
David Baker 2017-10-13 16:06:17 +01:00
parent 5214a867db
commit d0759a537b

View file

@ -202,7 +202,10 @@ export default {
isFeatureEnabled: function(featureId: string): boolean {
const featuresConfig = SdkConfig.get()['features'];
let sdkConfigValue = 'disable';
// The old flag: honourned for backwards compat
const enableLabs = SdkConfig.get()['enableLabs'];
let sdkConfigValue = enableLabs ? 'labs' : 'disable';
if (featuresConfig && featuresConfig[featureId] !== undefined) {
sdkConfigValue = featuresConfig[featureId];
}