Commit 0ef1060e authored by Clement Ho's avatar Clement Ho

Merge branch 'add-gl-link-to-download-viewer' into 'master'

Add link component to download viewer component

See merge request gitlab-org/gitlab-ce!21987
parents 4ad247fd 574bafbf
<script>
import { Link } from '@gitlab-org/gitlab-ui';
import Icon from '../../icon.vue';
import { numberToHumanSize } from '../../../../lib/utils/number_utils';
export default {
components: {
'gl-link': Link,
Icon,
},
props: {
......@@ -37,7 +39,7 @@ export default {
({{ fileSizeReadable }})
</template>
</p>
<a
<gl-link
:href="path"
class="btn btn-default"
rel="nofollow"
......@@ -49,7 +51,7 @@ export default {
css-classes="float-left append-right-8"
/>
{{ __('Download') }}
</a>
</gl-link>
</div>
</div>
</template>
---
title: Add link component to DownloadViewer component
merge_request: 21987
author: George Tsiolis
type: other
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