summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/pipeline_editor/components/file_nav/pipeline_editor_file_nav.vue
blob: a945fc542a5de6ec97a378c9de587f48e7241252 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<script>
import glFeatureFlagsMixin from '~/vue_shared/mixins/gl_feature_flags_mixin';
import BranchSwitcher from './branch_switcher.vue';

export default {
  components: {
    BranchSwitcher,
  },
  mixins: [glFeatureFlagsMixin()],
  computed: {
    showBranchSwitcher() {
      return this.glFeatures.pipelineEditorBranchSwitcher;
    },
  },
};
</script>
<template>
  <div class="gl-mb-5">
    <branch-switcher v-if="showBranchSwitcher" v-on="$listeners" />
  </div>
</template>