From f6096a18016be63c719d2ce5a27d64363862b0fd Mon Sep 17 00:00:00 2001
From: Daniel Weipert <code@drogueronin.de>
Date: Tue, 22 Jun 2021 00:18:35 +0200
Subject: Initial commit

---
 app/src/components/Folders.vue | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
 create mode 100644 app/src/components/Folders.vue

(limited to 'app/src/components/Folders.vue')

diff --git a/app/src/components/Folders.vue b/app/src/components/Folders.vue
new file mode 100644
index 0000000..b801c1a
--- /dev/null
+++ b/app/src/components/Folders.vue
@@ -0,0 +1,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>
-- 
cgit v1.2.3

