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
45c00152
Commit
45c00152
authored
Sep 28, 2018
by
George Tsiolis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace tooltip in markdown component with gl-tooltip
parent
95a87689
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
10 deletions
+15
-10
app/assets/javascripts/vue_shared/components/markdown/header.vue
...ets/javascripts/vue_shared/components/markdown/header.vue
+5
-5
app/assets/javascripts/vue_shared/components/markdown/toolbar_button.vue
...scripts/vue_shared/components/markdown/toolbar_button.vue
+5
-5
changelogs/unreleased/replace-tooltip-in-markdown-component.yml
...logs/unreleased/replace-tooltip-in-markdown-component.yml
+5
-0
No files found.
app/assets/javascripts/vue_shared/components/markdown/header.vue
View file @
45c00152
<
script
>
<
script
>
import
$
from
'
jquery
'
;
import
$
from
'
jquery
'
;
import
Tooltip
from
'
../../directives/tooltip
'
;
import
{
GlTooltipDirective
}
from
'
@gitlab-org/gitlab-ui
'
;
import
ToolbarButton
from
'
./toolbar_button.vue
'
;
import
ToolbarButton
from
'
./toolbar_button.vue
'
;
import
Icon
from
'
../icon.vue
'
;
import
Icon
from
'
../icon.vue
'
;
export
default
{
export
default
{
directives
:
{
Tooltip
,
},
components
:
{
components
:
{
ToolbarButton
,
ToolbarButton
,
Icon
,
Icon
,
},
},
directives
:
{
GlTooltip
:
GlTooltipDirective
,
},
props
:
{
props
:
{
previewMarkdown
:
{
previewMarkdown
:
{
type
:
Boolean
,
type
:
Boolean
,
...
@@ -147,7 +147,7 @@ export default {
...
@@ -147,7 +147,7 @@ export default {
icon=
"table"
icon=
"table"
/>
/>
<button
<button
v-tooltip
v-
gl-
tooltip
aria-label=
"Go full screen"
aria-label=
"Go full screen"
class=
"toolbar-btn toolbar-fullscreen-btn js-zen-enter"
class=
"toolbar-btn toolbar-fullscreen-btn js-zen-enter"
data-container=
"body"
data-container=
"body"
...
...
app/assets/javascripts/vue_shared/components/markdown/toolbar_button.vue
View file @
45c00152
<
script
>
<
script
>
import
tooltip
from
'
../../directives/tooltip
'
;
import
{
GlTooltipDirective
}
from
'
@gitlab-org/gitlab-ui
'
;
import
i
con
from
'
../icon.vue
'
;
import
I
con
from
'
../icon.vue
'
;
export
default
{
export
default
{
components
:
{
components
:
{
i
con
,
I
con
,
},
},
directives
:
{
directives
:
{
tooltip
,
GlTooltip
:
GlTooltipDirective
,
},
},
props
:
{
props
:
{
buttonTitle
:
{
buttonTitle
:
{
...
@@ -43,7 +43,7 @@ export default {
...
@@ -43,7 +43,7 @@ export default {
<
template
>
<
template
>
<button
<button
v-tooltip
v-
gl-
tooltip
:data-md-tag=
"tag"
:data-md-tag=
"tag"
:data-md-select=
"tagSelect"
:data-md-select=
"tagSelect"
:data-md-block=
"tagBlock"
:data-md-block=
"tagBlock"
...
...
changelogs/unreleased/replace-tooltip-in-markdown-component.yml
0 → 100644
View file @
45c00152
---
title
:
Replace tooltip in markdown component with gl-tooltip
merge_request
:
21989
author
:
George Tsiolis
type
:
other
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