Update LabsUserSettings for new feature behaviour

This commit is contained in:
Travis Ralston 2020-08-17 13:19:15 -06:00
parent 96087d61f6
commit eda4e24926
2 changed files with 10 additions and 2 deletions

View file

@ -124,6 +124,14 @@ export default class SettingsStore {
// Counter used for generation of watcher IDs
private static watcherCount = 1;
/**
* Gets all the feature-style setting names.
* @returns {string[]} The names of the feature settings.
*/
public static getFeatureSettingNames(): string[] {
return Object.keys(SETTINGS).filter(n => SettingsStore.isFeature(n));
}
/**
* Watches for changes in a particular setting. This is done without any local echo
* wrapping and fires whenever a change is detected in a setting's value, at any level.