debian-mirror-gitlab/app/assets/javascripts/repository/components/tree_action_link.vue
2021-01-29 00:20:46 +05:30

28 lines
444 B
Vue

<script>
import { GlLink } from '@gitlab/ui';
export default {
components: {
GlLink,
},
props: {
path: {
type: String,
required: true,
},
text: {
type: String,
required: true,
},
cssClass: {
type: String,
required: false,
default: null,
},
},
};
</script>
<template>
<gl-link :href="path" :class="cssClass" class="btn gl-button">{{ text }}</gl-link>
</template>