diff options
author | Joram Wilander <jwawilander@gmail.com> | 2016-06-06 13:41:54 -0400 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2016-06-06 10:41:54 -0700 |
commit | 1e245f19c7884e293698fe2e8cd7f46d4dac54c9 (patch) | |
tree | acdedf465346c9ad8b416c3e4604a9979e829aea /webapp/stores/preference_store.jsx | |
parent | 629b49a119cf58451a80e4667a6f876bea00e6aa (diff) | |
download | chat-1e245f19c7884e293698fe2e8cd7f46d4dac54c9.tar.gz chat-1e245f19c7884e293698fe2e8cd7f46d4dac54c9.tar.bz2 chat-1e245f19c7884e293698fe2e8cd7f46d4dac54c9.zip |
PLT-3114 Moved preview collapse out of pre-release features (#3206)
* Added user setting to auto collapse image previews
* Added slash commands for collapsing/expanding image previews
* Added translation strings for collapse setting
* Add default props for preview collapse setting
Diffstat (limited to 'webapp/stores/preference_store.jsx')
-rw-r--r-- | webapp/stores/preference_store.jsx | 6 |
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: |