summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/repo/components/repo_tabs.vue
blob: 59beae53e8d1853f2f4136d481d31ff99314f2fc (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
<script>
  import { mapState } from 'vuex';
  import RepoTab from './repo_tab.vue';

  export default {
    components: {
      'repo-tab': RepoTab,
    },
    computed: {
      ...mapState([
        'openFiles',
      ]),
    },
  };
</script>

<template>
  <ul
    id="tabs"
    class="list-unstyled"
  >
    <repo-tab
      v-for="tab in openFiles"
      :key="tab.id"
      :tab="tab"
    />
    <li class="tabs-divider" />
  </ul>
</template>