2017-09-10 17:25:29 +05:30
|
|
|
<script>
|
2019-10-12 21:52:04 +05:30
|
|
|
/* eslint-disable @gitlab/vue-i18n/no-bare-strings */
|
2019-07-07 11:18:12 +05:30
|
|
|
import { GlLink, GlTooltipDirective } from '@gitlab/ui';
|
2019-02-15 15:39:39 +05:30
|
|
|
import Icon from '~/vue_shared/components/icon.vue';
|
2017-09-10 17:25:29 +05:30
|
|
|
|
2018-11-08 19:23:39 +05:30
|
|
|
export default {
|
|
|
|
directives: {
|
2019-02-15 15:39:39 +05:30
|
|
|
GlTooltip: GlTooltipDirective,
|
2018-11-08 19:23:39 +05:30
|
|
|
},
|
|
|
|
components: {
|
2018-12-13 13:39:08 +05:30
|
|
|
Icon,
|
2019-02-15 15:39:39 +05:30
|
|
|
GlLink,
|
2018-11-08 19:23:39 +05:30
|
|
|
},
|
|
|
|
props: {
|
|
|
|
artifacts: {
|
|
|
|
type: Array,
|
|
|
|
required: true,
|
2018-03-17 18:26:18 +05:30
|
|
|
},
|
2018-11-08 19:23:39 +05:30
|
|
|
},
|
|
|
|
};
|
2017-09-10 17:25:29 +05:30
|
|
|
</script>
|
|
|
|
<template>
|
2019-02-15 15:39:39 +05:30
|
|
|
<div class="btn-group" role="group">
|
2019-07-07 11:18:12 +05:30
|
|
|
<button
|
2019-02-15 15:39:39 +05:30
|
|
|
v-gl-tooltip
|
2019-07-07 11:18:12 +05:30
|
|
|
type="button"
|
|
|
|
class="dropdown-toggle build-artifacts btn btn-default js-pipeline-dropdown-download"
|
|
|
|
:title="__('Artifacts')"
|
2017-09-10 17:25:29 +05:30
|
|
|
data-toggle="dropdown"
|
2019-07-07 11:18:12 +05:30
|
|
|
:aria-label="__('Artifacts')"
|
2018-03-17 18:26:18 +05:30
|
|
|
>
|
2019-07-07 11:18:12 +05:30
|
|
|
<icon name="download" />
|
|
|
|
<i class="fa fa-caret-down" aria-hidden="true"></i>
|
|
|
|
</button>
|
2018-11-08 19:23:39 +05:30
|
|
|
<ul class="dropdown-menu dropdown-menu-right">
|
2019-02-15 15:39:39 +05:30
|
|
|
<li v-for="(artifact, i) in artifacts" :key="i">
|
2019-07-07 11:18:12 +05:30
|
|
|
<gl-link :href="artifact.path" rel="nofollow" download
|
|
|
|
>Download {{ artifact.name }} artifacts</gl-link
|
|
|
|
>
|
2017-09-10 17:25:29 +05:30
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</template>
|