All files / app/assets/javascripts/ide/components nav_form.vue

100% Statements 4/4
50% Branches 1/2
100% Functions 1/1
100% Lines 4/4

Press n or j to go to the next uncovered block, b, p or k for the previous block.

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 34 35 36  6x 6x 6x                                     21x                          
<script>
import { GlTab, GlTabs } from '@gitlab/ui';
import BranchesSearchList from './branches/search_list.vue';
import MergeRequestSearchList from './merge_requests/list.vue';
 
export default {
  components: {
    GlTab,
    GlTabs,
    BranchesSearchList,
    MergeRequestSearchList,
  },
  props: {
    showMergeRequests: {
      type: Boolean,
      required: false,
      default: true,
    },
  },
};
</script>
 
<template>
  <div class="ide-nav-form p-0">
    <gl-tabs v-if="showMergeRequests">
      <gl-tab :title="__('Branches')">
        <branches-search-list />
      </gl-tab>
      <gl-tab :title="__('Merge requests')">
        <merge-request-search-list />
      </gl-tab>
    </gl-tabs>
    <branches-search-list v-else />
  </div>
</template>