Save settings more reasonably

This commit is contained in:
John Furrow
2016-05-03 20:44:47 -07:00
parent 5e8640457f
commit 2eac7fb035
20 changed files with 207 additions and 193 deletions
@@ -9,11 +9,15 @@ class SettingsStoreClass extends BaseStore {
super();
}
fetchSettings() {
SettingsActions.fetchSettings();
fetchSettings(property) {
SettingsActions.fetchSettings(property);
}
getSettings() {
getSettings(property) {
if (property) {
return this.settings[property];
}
return this.settings;
}
@@ -27,6 +31,7 @@ class SettingsStoreClass extends BaseStore {
}
saveSettings(settings) {
this.settings[settings.id] = settings.data;
SettingsActions.saveSettings(settings);
}
}