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
>
import
{
Gl
Link
}
from
'
@gitlab/ui
'
;
import
{
Gl
Button
}
from
'
@gitlab/ui
'
;
export
default
{
components
:
{
Gl
Link
,
Gl
Button
,
},
props
:
{
currentPath
:
{
...
...
@@ -32,15 +32,15 @@ export default {
<h5
class=
"m-0 dropdown-bold-header"
>
{{
__
(
'
Download this directory
'
)
}}
</h5>
<div
class=
"dropdown-menu-content"
>
<div
class=
"btn-group ml-0 w-100"
>
<gl-
link
<gl-
button
v-for=
"(link, index) in normalizedLinks"
:key=
"index"
:href=
"link.path"
:
class=
"
{ 'btn-primary': index === 0 }
"
class="btn btn-xs
"
:
variant=
"index === 0 ? 'confirm' : 'default'
"
size=
"small
"
>
{{
link
.
text
}}
</gl-
link
>
</gl-
button
>
</div>
</div>
</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
<div
class="btn-group ml-0 w-100"
>
<gl-link-stub
class="btn btn-xs btn-primary"
<gl-button-stub
buttontextclasses=""
category="primary"
href="http://test.com/?path=app"
icon=""
size="small"
variant="confirm"
>
zip
</gl-link-stub>
<gl-link-stub
class="btn btn-xs"
</gl-button-stub>
<gl-button-stub
buttontextclasses=""
category="primary"
href="http://test.com/?path=app"
icon=""
size="small"
variant="default"
>
tar
</gl-
link
-stub>
</gl-
button
-stub>
</div>
</div>
</section>
...
...
@@ -53,22 +61,30 @@ exports[`Repository directory download links component renders downloads links f
<div
class="btn-group ml-0 w-100"
>
<gl-link-stub
class="btn btn-xs btn-primary"
<gl-button-stub
buttontextclasses=""
category="primary"
href="http://test.com/?path=app/assets"
icon=""
size="small"
variant="confirm"
>
zip
</gl-link-stub>
<gl-link-stub
class="btn btn-xs"
</gl-button-stub>
<gl-button-stub
buttontextclasses=""
category="primary"
href="http://test.com/?path=app/assets"
icon=""
size="small"
variant="default"
>
tar
</gl-
link
-stub>
</gl-
button
-stub>
</div>
</div>
</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