Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Add experimental "Labs" section to settings #305

Merged
merged 3 commits into from
Jun 13, 2016

Conversation

aviraldg
Copy link
Contributor

No description provided.

@@ -112,4 +112,14 @@ module.exports = {
append: true, // We always append for email pushers since we don't want to stop other accounts notifying to the same email address
});
},

isFeatureEnabled: function(feature: string): boolean {
feature = feature.match(/\w+/g).join('_').toLowerCase();
Copy link
Member

@dbkr dbkr Jun 13, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure I'm a big fan of the magic here - I'd prefer LABS_FEATURES to just be an object.

Edit: Also, if we're using underscored strings as keys under the hood I'd have thought we should use them as the parameter to these functions too.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that's how they're intended to be used -- with underscored strings (which remain the same after this magic.)

@dbkr
Copy link
Member

dbkr commented Jun 13, 2016

Other than that, looking good.

@dbkr dbkr merged commit 3312a4d into matrix-org:develop Jun 13, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants