gitlab-org--gitlab-foss/app/assets/javascripts/repo/components/repo_tabs.vue
2017-10-26 11:14:31 +01:00

29 lines
448 B
Vue

<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>