Commit 5894d37d authored by Andrew Fontaine's avatar Andrew Fontaine

Merge branch 'btn-confirm-download-dir' into 'master'

Move to btn-confirm in download directory dropdown

See merge request gitlab-org/gitlab!56193
parents 2e4e38ad 46c1766b
<script>
import { GlLink } from '@gitlab/ui';
import { GlButton } from '@gitlab/ui';
export default {
components: {
GlLink,
GlButton,
},
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>
......
---
title: Move to btn-confirm in download directory dropdown
merge_request: 56193
author: Yogi (@yo)
type: changed
......@@ -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>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment