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
1b3042c3
Commit
1b3042c3
authored
Mar 04, 2021
by
Dallas Reedy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Track when the popover is shown
parent
d8a891a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
ee/app/assets/javascripts/contextual_sidebar/components/trial_status_popover.vue
...ts/contextual_sidebar/components/trial_status_popover.vue
+8
-0
No files found.
ee/app/assets/javascripts/contextual_sidebar/components/trial_status_popover.vue
View file @
1b3042c3
...
...
@@ -4,6 +4,7 @@ import { GlBreakpointInstance as bp } from '@gitlab/ui/dist/utils';
import
{
debounce
}
from
'
lodash
'
;
import
{
formatDate
}
from
'
~/lib/utils/datetime_utility
'
;
import
{
s__
}
from
'
~/locale
'
;
import
Tracking
from
'
~/tracking
'
;
const
RESIZE_EVENT_DEBOUNCE_MS
=
150
;
...
...
@@ -76,6 +77,12 @@ export default {
onResize
()
{
this
.
updateDisabledState
();
},
onShown
()
{
Tracking
.
event
(
undefined
,
'
popover_shown
'
,
{
label
:
'
trial_status_popover
'
,
property
:
'
experiment:show_trial_status_in_sidebar
'
,
});
},
updateDisabledState
()
{
this
.
disabled
=
[
'
xs
'
,
'
sm
'
].
includes
(
bp
.
getBreakpointSize
());
},
...
...
@@ -92,6 +99,7 @@ export default {
placement=
"rightbottom"
boundary=
"viewport"
:delay=
"
{ hide: 400 }"
@shown="onShown"
>
<template
#title
>
{{
$options
.
i18n
.
popoverTitle
}}
...
...
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