diff options
Diffstat (limited to 'app/assets/javascripts/pipeline_editor/components/file_nav/pipeline_editor_file_nav.vue')
-rw-r--r-- | app/assets/javascripts/pipeline_editor/components/file_nav/pipeline_editor_file_nav.vue | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/app/assets/javascripts/pipeline_editor/components/file_nav/pipeline_editor_file_nav.vue b/app/assets/javascripts/pipeline_editor/components/file_nav/pipeline_editor_file_nav.vue new file mode 100644 index 00000000000..a945fc542a5 --- /dev/null +++ b/app/assets/javascripts/pipeline_editor/components/file_nav/pipeline_editor_file_nav.vue @@ -0,0 +1,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> |