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
46c1766b
Commit
46c1766b
authored
Mar 17, 2021
by
Yogi
Committed by
Andrew Fontaine
Mar 17, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move to btn-confirm in download directory dropdown
parent
16ec2775
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
18 deletions
+39
-18
app/assets/javascripts/repository/components/directory_download_links.vue
...cripts/repository/components/directory_download_links.vue
+6
-6
changelogs/unreleased/btn-confirm-download-dir.yml
changelogs/unreleased/btn-confirm-download-dir.yml
+5
-0
spec/frontend/repository/components/__snapshots__/directory_download_links_spec.js.snap
...nents/__snapshots__/directory_download_links_spec.js.snap
+28
-12
No files found.
app/assets/javascripts/repository/components/directory_download_links.vue
View file @
46c1766b
<
script
>
<
script
>
import
{
Gl
Link
}
from
'
@gitlab/ui
'
;
import
{
Gl
Button
}
from
'
@gitlab/ui
'
;
export
default
{
export
default
{
components
:
{
components
:
{
Gl
Link
,
Gl
Button
,
},
},
props
:
{
props
:
{
currentPath
:
{
currentPath
:
{
...
@@ -32,15 +32,15 @@ export default {
...
@@ -32,15 +32,15 @@ export default {
<h5
class=
"m-0 dropdown-bold-header"
>
{{
__
(
'
Download this directory
'
)
}}
</h5>
<h5
class=
"m-0 dropdown-bold-header"
>
{{
__
(
'
Download this directory
'
)
}}
</h5>
<div
class=
"dropdown-menu-content"
>
<div
class=
"dropdown-menu-content"
>
<div
class=
"btn-group ml-0 w-100"
>
<div
class=
"btn-group ml-0 w-100"
>
<gl-
link
<gl-
button
v-for=
"(link, index) in normalizedLinks"
v-for=
"(link, index) in normalizedLinks"
:key=
"index"
:key=
"index"
:href=
"link.path"
:href=
"link.path"
:
class=
"
{ 'btn-primary': index === 0 }
"
:
variant=
"index === 0 ? 'confirm' : 'default'
"
class="btn btn-xs
"
size=
"small
"
>
>
{{
link
.
text
}}
{{
link
.
text
}}
</gl-
link
>
</gl-
button
>
</div>
</div>
</div>
</div>
</section>
</section>
...
...
changelogs/unreleased/btn-confirm-download-dir.yml
0 → 100644
View file @
46c1766b
---
title
:
Move to btn-confirm in download directory dropdown
merge_request
:
56193
author
:
Yogi (@yo)
type
:
changed
spec/frontend/repository/components/__snapshots__/directory_download_links_spec.js.snap
View file @
46c1766b
...
@@ -16,22 +16,30 @@ exports[`Repository directory download links component renders downloads links f
...
@@ -16,22 +16,30 @@ exports[`Repository directory download links component renders downloads links f
<div
<div
class="btn-group ml-0 w-100"
class="btn-group ml-0 w-100"
>
>
<gl-link-stub
<gl-button-stub
class="btn btn-xs btn-primary"
buttontextclasses=""
category="primary"
href="http://test.com/?path=app"
href="http://test.com/?path=app"
icon=""
size="small"
variant="confirm"
>
>
zip
zip
</gl-link-stub>
</gl-button-stub>
<gl-link-stub
<gl-button-stub
class="btn btn-xs"
buttontextclasses=""
category="primary"
href="http://test.com/?path=app"
href="http://test.com/?path=app"
icon=""
size="small"
variant="default"
>
>
tar
tar
</gl-
link
-stub>
</gl-
button
-stub>
</div>
</div>
</div>
</div>
</section>
</section>
...
@@ -53,22 +61,30 @@ exports[`Repository directory download links component renders downloads links f
...
@@ -53,22 +61,30 @@ exports[`Repository directory download links component renders downloads links f
<div
<div
class="btn-group ml-0 w-100"
class="btn-group ml-0 w-100"
>
>
<gl-link-stub
<gl-button-stub
class="btn btn-xs btn-primary"
buttontextclasses=""
category="primary"
href="http://test.com/?path=app/assets"
href="http://test.com/?path=app/assets"
icon=""
size="small"
variant="confirm"
>
>
zip
zip
</gl-link-stub>
</gl-button-stub>
<gl-link-stub
<gl-button-stub
class="btn btn-xs"
buttontextclasses=""
category="primary"
href="http://test.com/?path=app/assets"
href="http://test.com/?path=app/assets"
icon=""
size="small"
variant="default"
>
>
tar
tar
</gl-
link
-stub>
</gl-
button
-stub>
</div>
</div>
</div>
</div>
</section>
</section>
...
...
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