Commit 574bafbf authored by George Tsiolis's avatar George Tsiolis Committed by Clement Ho

Add link component to download viewer component

parent 4ad247fd
<script> <script>
import { Link } from '@gitlab-org/gitlab-ui';
import Icon from '../../icon.vue'; import Icon from '../../icon.vue';
import { numberToHumanSize } from '../../../../lib/utils/number_utils'; import { numberToHumanSize } from '../../../../lib/utils/number_utils';
export default { export default {
components: { components: {
'gl-link': Link,
Icon, Icon,
}, },
props: { props: {
...@@ -37,7 +39,7 @@ export default { ...@@ -37,7 +39,7 @@ export default {
({{ fileSizeReadable }}) ({{ fileSizeReadable }})
</template> </template>
</p> </p>
<a <gl-link
:href="path" :href="path"
class="btn btn-default" class="btn btn-default"
rel="nofollow" rel="nofollow"
...@@ -49,7 +51,7 @@ export default { ...@@ -49,7 +51,7 @@ export default {
css-classes="float-left append-right-8" css-classes="float-left append-right-8"
/> />
{{ __('Download') }} {{ __('Download') }}
</a> </gl-link>
</div> </div>
</div> </div>
</template> </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