summaryrefslogtreecommitdiff
path: root/app/src/components/Folders.vue
blob: b801c1abf243e09d2a9a48fc7c6323dc566347a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<template>
  <li>
    <div>
      {{ folder.root ? '' : folder.name }}
    </div>
    <ul v-if="folder.folders">
      <Folders v-for="(child, idx) in folder.folders" :key="idx" :folder="child" />
    </ul>
  </li>
</template>

<script>
export default {
  props: {
    folder: {
      type: Object,
      required: true,
    },
  },
};
</script>