mirror of
https://github.com/zoriya/flood.git
synced 2026-06-01 18:47:44 +00:00
Save settings more reasonably
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user