Move 'commit_tags' to action creator
This commit is contained in:
parent
12515441cd
commit
72550961e5
4 changed files with 40 additions and 9 deletions
|
@ -15,8 +15,6 @@ limitations under the License.
|
|||
*/
|
||||
import {Store} from 'flux/utils';
|
||||
import dis from '../dispatcher';
|
||||
import Analytics from '../Analytics';
|
||||
import MatrixClientPeg from "../MatrixClientPeg";
|
||||
|
||||
const INITIAL_STATE = {
|
||||
orderedTags: null,
|
||||
|
@ -71,10 +69,6 @@ class TagOrderStore extends Store {
|
|||
this._setState({orderedTags});
|
||||
}
|
||||
break;
|
||||
case 'commit_tags':
|
||||
MatrixClientPeg.get().setAccountData('im.vector.web.tag_ordering', {tags: this._state.orderedTags});
|
||||
Analytics.trackEvent('TagOrderStore', 'commit_tags');
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue