diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-03 21:09:56 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-03 21:09:56 +0000 |
commit | c1a50b8195f4e36fda9b233acbde57a449bcf6c3 (patch) | |
tree | b24a10a7951e9a799397753d1badf6894fe03089 /app/assets/javascripts/notes | |
parent | b6847c621ff246e6abceb90545d5a608318762d6 (diff) | |
download | gitlab-ce-c1a50b8195f4e36fda9b233acbde57a449bcf6c3.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/notes')
-rw-r--r-- | app/assets/javascripts/notes/components/sort_discussion.vue | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/assets/javascripts/notes/components/sort_discussion.vue b/app/assets/javascripts/notes/components/sort_discussion.vue index 16eded52763..3f82ddde3ef 100644 --- a/app/assets/javascripts/notes/components/sort_discussion.vue +++ b/app/assets/javascripts/notes/components/sort_discussion.vue @@ -2,6 +2,7 @@ import { GlIcon } from '@gitlab/ui'; import { mapActions, mapGetters } from 'vuex'; import { __ } from '~/locale'; +import Tracking from '~/tracking'; import { ASC, DESC } from '../constants'; const SORT_OPTIONS = [ @@ -14,6 +15,7 @@ export default { components: { GlIcon, }, + mixins: [Tracking.mixin()], computed: { ...mapGetters(['sortDirection']), selectedOption() { @@ -31,6 +33,7 @@ export default { } this.setDiscussionSortDirection(direction); + this.track('change_discussion_sort_direction', { property: direction }); }, isDropdownItemActive(sortDir) { return sortDir === this.sortDirection; |