summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/repository/components/tree_action_link.vue
blob: c5ab150adaff634f895167ae8ccf6c1f888e7812 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<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>