Add analytics to TagOrderStore
This commit is contained in:
parent
a9cc8eba33
commit
8f88995b3d
1 changed files with 2 additions and 1 deletions
|
@ -15,7 +15,7 @@ limitations under the License.
|
||||||
*/
|
*/
|
||||||
import {Store} from 'flux/utils';
|
import {Store} from 'flux/utils';
|
||||||
import dis from '../dispatcher';
|
import dis from '../dispatcher';
|
||||||
// import Analytics from '../Analytics';
|
import Analytics from '../Analytics';
|
||||||
import MatrixClientPeg from "../MatrixClientPeg";
|
import MatrixClientPeg from "../MatrixClientPeg";
|
||||||
|
|
||||||
const INITIAL_STATE = {
|
const INITIAL_STATE = {
|
||||||
|
@ -76,6 +76,7 @@ class TagOrderStore extends Store {
|
||||||
break;
|
break;
|
||||||
case 'commit_tags':
|
case 'commit_tags':
|
||||||
MatrixClientPeg.get().setAccountData('im.vector.web.tag_ordering', {tags: this._state.orderedTags});
|
MatrixClientPeg.get().setAccountData('im.vector.web.tag_ordering', {tags: this._state.orderedTags});
|
||||||
|
Analytics.trackEvent('TagOrderStore', 'commit_tags');
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue