summaryrefslogtreecommitdiffstats
path: root/webapp/stores/preference_store.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/stores/preference_store.jsx')
-rw-r--r--webapp/stores/preference_store.jsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/webapp/stores/preference_store.jsx b/webapp/stores/preference_store.jsx
index d84f2ded9..13e0a94f6 100644
--- a/webapp/stores/preference_store.jsx
+++ b/webapp/stores/preference_store.jsx
@@ -82,8 +82,8 @@ class PreferenceStoreClass extends EventEmitter {
this.preferences.clear();
}
- emitChange() {
- this.emit(CHANGE_EVENT);
+ emitChange(category) {
+ this.emit(CHANGE_EVENT, category);
}
addChangeListener(callback) {
@@ -101,7 +101,7 @@ class PreferenceStoreClass extends EventEmitter {
case ActionTypes.RECEIVED_PREFERENCE: {
const preference = action.preference;
this.setPreference(preference.category, preference.name, preference.value);
- this.emitChange();
+ this.emitChange(preference.category);
break;
}
case ActionTypes.RECEIVED_PREFERENCES: