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
24db8c9b
Commit
24db8c9b
authored
Jul 16, 2020
by
vkarnes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Migrate viewer switcher button
parent
4cf1fbe2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
app/assets/javascripts/blob/components/blob_header_viewer_switcher.vue
...vascripts/blob/components/blob_header_viewer_switcher.vue
+6
-6
No files found.
app/assets/javascripts/blob/components/blob_header_viewer_switcher.vue
View file @
24db8c9b
<
script
>
import
{
Gl
Deprecated
Button
,
GlButtonGroup
,
GlIcon
,
GlTooltipDirective
}
from
'
@gitlab/ui
'
;
import
{
GlButton
,
GlButtonGroup
,
GlIcon
,
GlTooltipDirective
}
from
'
@gitlab/ui
'
;
import
{
RICH_BLOB_VIEWER
,
RICH_BLOB_VIEWER_TITLE
,
...
...
@@ -11,7 +11,7 @@ export default {
components
:
{
GlIcon
,
GlButtonGroup
,
Gl
Deprecated
Button
,
GlButton
,
},
directives
:
{
GlTooltip
:
GlTooltipDirective
,
...
...
@@ -46,7 +46,7 @@ export default {
</
script
>
<
template
>
<gl-button-group
class=
"js-blob-viewer-switcher mx-2"
>
<gl-
deprecated-
button
<gl-button
v-gl-tooltip
.
hover
:aria-label=
"$options.SIMPLE_BLOB_VIEWER_TITLE"
:title=
"$options.SIMPLE_BLOB_VIEWER_TITLE"
...
...
@@ -55,8 +55,8 @@ export default {
@click="switchToViewer($options.SIMPLE_BLOB_VIEWER)"
>
<gl-icon
name=
"code"
:size=
"14"
/>
</gl-
deprecated-
button>
<gl-
deprecated-
button
</gl-button>
<gl-button
v-gl-tooltip
.
hover
:aria-label=
"$options.RICH_BLOB_VIEWER_TITLE"
:title=
"$options.RICH_BLOB_VIEWER_TITLE"
...
...
@@ -65,6 +65,6 @@ export default {
@click="switchToViewer($options.RICH_BLOB_VIEWER)"
>
<gl-icon
name=
"document"
:size=
"14"
/>
</gl-
deprecated-
button>
</gl-button>
</gl-button-group>
</
template
>
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