gitlab-org--gitlab-foss/app/assets/javascripts/ide/components/repo_tabs.vue

28 lines
435 B
Vue
Raw Normal View History

2017-07-24 12:15:41 -04:00
<script>
import { mapState } from 'vuex';
import RepoTab from './repo_tab.vue';
2017-07-24 12:15:41 -04:00
export default {
components: {
'repo-tab': RepoTab,
2017-08-01 09:41:24 -04:00
},
computed: {
...mapState([
'openFiles',
]),
},
};
2017-07-24 12:15:41 -04:00
</script>
<template>
<ul
2017-11-23 12:16:01 -05:00
class="multi-file-tabs list-unstyled append-bottom-0"
>
<repo-tab
v-for="tab in openFiles"
2018-01-23 04:37:07 -05:00
:key="tab.key"
:tab="tab"
/>
</ul>
2017-07-24 12:15:41 -04:00
</template>