Commit 46c1766b authored by Yogi's avatar Yogi Committed by Andrew Fontaine

Move to btn-confirm in download directory dropdown

parent 16ec2775
<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