summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/ide/components/ide_tree.vue
blob: 7dbedaf2cb2b0a0fe7a75f21339ec71785edc647 (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>
import { mapState, mapGetters } from 'vuex';
import NewDropdown from './new_dropdown/index.vue';
import IdeTreeList from './ide_tree_list.vue';

export default {
  components: {
    NewDropdown,
    IdeTreeList,
  },
  computed: {
    ...mapState(['currentBranchId']),
    ...mapGetters(['currentProject']),
  },
};
</script>

<template>
  <ide-tree-list
    viewer-type="editor"
  >
    <template
      slot="header"
    >
      {{ __('Edit') }}
      <new-dropdown
        :project-id="currentProject.name_with_namespace"
        :branch="currentBranchId"
        path=""
      />
    </template>
  </ide-tree-list>
</template>