debian-mirror-gitlab/app/assets/javascripts/ide/components/nav_form.vue

36 lines
761 B
Vue
Raw Normal View History

2018-11-18 11:00:15 +05:30
<script>
2021-04-17 20:07:23 +05:30
import { GlTab, GlTabs } from '@gitlab/ui';
2018-11-18 11:00:15 +05:30
import BranchesSearchList from './branches/search_list.vue';
import MergeRequestSearchList from './merge_requests/list.vue';
export default {
components: {
2021-04-17 20:07:23 +05:30
GlTab,
GlTabs,
2018-11-18 11:00:15 +05:30
BranchesSearchList,
MergeRequestSearchList,
},
2020-03-13 15:44:24 +05:30
props: {
showMergeRequests: {
type: Boolean,
required: false,
default: true,
},
},
2018-11-18 11:00:15 +05:30
};
</script>
<template>
2019-02-15 15:39:39 +05:30
<div class="ide-nav-form p-0">
2021-04-17 20:07:23 +05:30
<gl-tabs v-if="showMergeRequests">
<gl-tab :title="__('Branches')">
2020-03-13 15:44:24 +05:30
<branches-search-list />
2021-04-17 20:07:23 +05:30
</gl-tab>
2021-04-29 21:17:54 +05:30
<gl-tab :title="__('Merge requests')">
2020-03-13 15:44:24 +05:30
<merge-request-search-list />
2021-04-17 20:07:23 +05:30
</gl-tab>
</gl-tabs>
2020-03-13 15:44:24 +05:30
<branches-search-list v-else />
2018-11-18 11:00:15 +05:30
</div>
</template>