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
a3589f34
Commit
a3589f34
authored
Oct 15, 2020
by
Amelia Bauerly
Committed by
Nicolò Maria Mezzopera
Oct 15, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replacing vue shared tooltip on calendar icon
parent
0fe59e92
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
14 deletions
+9
-14
app/assets/javascripts/vue_shared/components/sidebar/collapsed_calendar_icon.vue
...vue_shared/components/sidebar/collapsed_calendar_icon.vue
+3
-13
changelogs/unreleased/Replace-calendar-icon-tooltip-sidebar-ab.yml
...s/unreleased/Replace-calendar-icon-tooltip-sidebar-ab.yml
+5
-0
spec/frontend/vue_shared/components/sidebar/collapsed_grouped_date_picker_spec.js
.../components/sidebar/collapsed_grouped_date_picker_spec.js
+1
-1
No files found.
app/assets/javascripts/vue_shared/components/sidebar/collapsed_calendar_icon.vue
View file @
a3589f34
<
script
>
import
{
GlIcon
}
from
'
@gitlab/ui
'
;
import
tooltip
from
'
~/vue_shared/directives/tooltip
'
;
import
{
GlIcon
,
GlTooltipDirective
}
from
'
@gitlab/ui
'
;
export
default
{
name
:
'
CollapsedCalendarIcon
'
,
directives
:
{
tooltip
,
GlTooltip
:
GlTooltipDirective
,
},
components
:
{
GlIcon
,
...
...
@@ -41,16 +40,7 @@ export default {
</
script
>
<
template
>
<div
v-tooltip
:class=
"containerClass"
:title=
"tooltipText"
data-container=
"body"
data-placement=
"left"
data-html=
"true"
data-boundary=
"viewport"
@
click=
"click"
>
<div
v-gl-tooltip
.
left
.
viewport
:class=
"containerClass"
:title=
"tooltipText"
@
click=
"click"
>
<gl-icon
v-if=
"showIcon"
name=
"calendar"
/>
<slot>
<span>
{{
text
}}
</span>
...
...
changelogs/unreleased/Replace-calendar-icon-tooltip-sidebar-ab.yml
0 → 100644
View file @
a3589f34
---
title
:
Replacing vue shared tooltip on calendar icon
merge_request
:
45059
author
:
type
:
other
spec/frontend/vue_shared/components/sidebar/collapsed_grouped_date_picker_spec.js
View file @
a3589f34
...
...
@@ -80,7 +80,7 @@ describe('collapsedGroupedDatePicker', () => {
it
(
'
should have tooltip as `Start and due date`
'
,
()
=>
{
const
icons
=
vm
.
$el
.
querySelectorAll
(
'
.sidebar-collapsed-icon
'
);
expect
(
icons
[
0
].
dataset
.
originalT
itle
).
toBe
(
'
Start and due date
'
);
expect
(
icons
[
0
].
t
itle
).
toBe
(
'
Start and due date
'
);
});
});
});
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