summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/pipeline_editor/components/file_nav/pipeline_editor_file_nav.vue
blob: ebe73bdcec382ed286a98d5219311da2f47d6f12 (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-4">
    <branch-switcher v-if="showBranchSwitcher" v-on="$listeners" />
  </div>
</template>