Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
36443760
Commit
36443760
authored
Sep 15, 2020
by
Rajat Jain
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add snowplow tracking to swimlanes
parent
4d8bc1ac
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
2 deletions
+19
-2
ee/app/assets/javascripts/boards/components/toggle_epics_swimlanes.vue
.../javascripts/boards/components/toggle_epics_swimlanes.vue
+19
-2
No files found.
ee/app/assets/javascripts/boards/components/toggle_epics_swimlanes.vue
View file @
36443760
...
@@ -2,12 +2,16 @@
...
@@ -2,12 +2,16 @@
import
{
mapState
,
mapActions
}
from
'
vuex
'
;
import
{
mapState
,
mapActions
}
from
'
vuex
'
;
import
{
GlNewDropdown
as
GlDropdown
,
GlNewDropdownItem
as
GlDropdownItem
}
from
'
@gitlab/ui
'
;
import
{
GlNewDropdown
as
GlDropdown
,
GlNewDropdownItem
as
GlDropdownItem
}
from
'
@gitlab/ui
'
;
import
{
__
}
from
'
~/locale
'
;
import
{
__
}
from
'
~/locale
'
;
import
Tracking
from
'
~/tracking
'
;
const
trackingMixin
=
Tracking
.
mixin
();
export
default
{
export
default
{
components
:
{
components
:
{
GlDropdown
,
GlDropdown
,
GlDropdownItem
,
GlDropdownItem
,
},
},
mixins
:
[
trackingMixin
],
computed
:
{
computed
:
{
...
mapState
([
'
isShowingEpicsSwimlanes
'
]),
...
mapState
([
'
isShowingEpicsSwimlanes
'
]),
...
@@ -25,6 +29,19 @@ export default {
...
@@ -25,6 +29,19 @@ export default {
...
mapActions
([
'
toggleEpicSwimlanes
'
]),
...
mapActions
([
'
toggleEpicSwimlanes
'
]),
onToggle
()
{
onToggle
()
{
// Track toggle event
this
.
track
(
'
click_toggle_swimlanes_button
'
,
{
label
:
'
toggle_swimlanes
'
,
property
:
this
.
isShowingEpicsSwimlanes
?
'
off
'
:
'
on
'
,
});
// Track if the board has swimlane active
if
(
!
this
.
isShowingEpicsSwimlanes
)
{
this
.
track
(
'
click_toggle_swimlanes_button
'
,
{
label
:
'
swimlanes_active
'
,
});
}
this
.
toggleEpicSwimlanes
();
this
.
toggleEpicSwimlanes
();
},
},
},
},
...
@@ -50,13 +67,13 @@ export default {
...
@@ -50,13 +67,13 @@ export default {
<gl-dropdown-item
<gl-dropdown-item
:is-check-item=
"true"
:is-check-item=
"true"
:is-checked=
"!isShowingEpicsSwimlanes"
:is-checked=
"!isShowingEpicsSwimlanes"
@
click=
"
toggleEpicSwimlanes
()"
@
click=
"
onToggle
()"
>
{{
groupByNoneLabel
}}
</gl-dropdown-item
>
{{
groupByNoneLabel
}}
</gl-dropdown-item
>
>
<gl-dropdown-item
<gl-dropdown-item
:is-check-item=
"true"
:is-check-item=
"true"
:is-checked=
"isShowingEpicsSwimlanes"
:is-checked=
"isShowingEpicsSwimlanes"
@
click=
"
toggleEpicSwimlanes
()"
@
click=
"
onToggle
()"
>
{{
groupByEpicLabel
}}
</gl-dropdown-item
>
{{
groupByEpicLabel
}}
</gl-dropdown-item
>
>
</gl-dropdown>
</gl-dropdown>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment