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
962420c0
Commit
962420c0
authored
Aug 10, 2018
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added tooltips to tree list header buttons in Web IDE
Closes #50141
parent
9964b678
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
app/assets/javascripts/ide/components/new_dropdown/button.vue
...assets/javascripts/ide/components/new_dropdown/button.vue
+11
-0
changelogs/unreleased/ide-header-buttons-tooltip.yml
changelogs/unreleased/ide-header-buttons-tooltip.yml
+5
-0
No files found.
app/assets/javascripts/ide/components/new_dropdown/button.vue
View file @
962420c0
<
script
>
import
Icon
from
'
~/vue_shared/components/icon.vue
'
;
import
tooltip
from
'
~/vue_shared/directives/tooltip
'
;
export
default
{
directives
:
{
tooltip
,
},
components
:
{
Icon
,
},
...
...
@@ -26,6 +30,11 @@ export default {
default
:
true
,
},
},
computed
:
{
tooltipTitle
()
{
return
this
.
showLabel
?
''
:
this
.
label
;
},
},
methods
:
{
clicked
()
{
this
.
$emit
(
'
click
'
);
...
...
@@ -36,7 +45,9 @@ export default {
<
template
>
<button
v-tooltip
:aria-label=
"label"
:title=
"tooltipTitle"
type=
"button"
class=
"btn-blank"
@
click.stop.prevent=
"clicked"
...
...
changelogs/unreleased/ide-header-buttons-tooltip.yml
0 → 100644
View file @
962420c0
---
title
:
Added tooltips to tree list header
merge_request
:
author
:
type
:
added
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