BigW Consortium Gitlab

repo_prev_directory.vue 415 Bytes
Newer Older
1
<script>
2
const RepoPreviousDirectory = {
3
  props: {
4 5 6 7
    prevUrl: {
      type: String,
      required: true,
    },
8 9 10 11 12
  },

  methods: {
    linkClicked(file) {
      this.$emit('linkclicked', file);
13 14
    },
  },
15
};
16

17
export default RepoPreviousDirectory;
18 19 20
</script>

<template>
21
<tr class="prev-directory">
22 23 24 25 26
  <td colspan="3">
    <a :href="prevUrl" @click.prevent="linkClicked(prevUrl)">..</a>
  </td>
</tr>
</template>