summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/ide/components/ide_project_branches_tree.vue
blob: bd3a521ff43fe00dfd139ab72fcc2c226d86bd0c (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<script>
import repoTree from './ide_repo_tree.vue';
import icon from '../../vue_shared/components/icon.vue';
import newDropdown from './new_dropdown/index.vue';

export default {
  components: {
    repoTree,
    icon,
    newDropdown,
  },
  props: {
    projectId: {
      type: String,
      required: true,
    },
    branch: {
      type: Object,
      required: true,
    },
  },
};
</script>

<template>
  <div class="branch-container">
    <div class="branch-header">
      <div class="branch-header-title">
        <icon
          name="branch"
          :size="12">
        </icon>
        {{ branch.name }}
      </div>
      <div class="branch-header-btns">
        <new-dropdown
          :project-id="projectId"
          :branch="branch.name"
          path=""/>
      </div>
    </div>
    <div>
      <repo-tree
        :treeId="branch.treeId"/>
    </div>
  </div>
</template>