summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/groups/components/group_folder.vue
blob: cf0fc2a42fdc32df7fd50bd64295b7cfed35ef95 (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
29
30
31
32
33
<script>
export default {
  props: {
    groups: {
      type: Object,
      required: true,
    },
    baseGroup: {
      type: Object,
      required: false,
      default: () => ({}),
    },
    hasSiblingProjects: {
      type: Boolean,
      required: true,
    },
  },
};
</script>

<template>
  <ul
    class="content-list group-list-tree"
    :class="{ 'has-sibling-projects': hasSiblingProjects }">
    <group-item
      v-for="(group, index) in groups"
      :key="index"
      :group="group"
      :base-group="baseGroup"
      :collection="groups"
    />
  </ul>
</template>