Commit dd06e804 authored by pburdette's avatar pburdette

Add switch branch tooltip

Add switch branch tooltip to
the branch switcher on the pipeline
editor.
parent c87f2d89
......@@ -6,6 +6,7 @@ import {
GlInfiniteScroll,
GlLoadingIcon,
GlSearchBoxByType,
GlTooltipDirective,
} from '@gitlab/ui';
import { produce } from 'immer';
import { fetchPolicies } from '~/lib/graphql';
......@@ -22,7 +23,7 @@ import getCurrentBranch from '~/pipeline_editor/graphql/queries/client/current_b
export default {
i18n: {
dropdownHeader: s__('Switch Branch'),
dropdownHeader: s__('Switch branch'),
title: s__('Branches'),
fetchError: s__('Unable to fetch branch list for this project.'),
},
......@@ -35,6 +36,9 @@ export default {
GlLoadingIcon,
GlSearchBoxByType,
},
directives: {
GlTooltip: GlTooltipDirective,
},
inject: ['projectFullPath', 'totalBranches'],
props: {
paginationLimit: {
......@@ -180,6 +184,8 @@ export default {
<template>
<gl-dropdown
v-if="showBranchSwitcher"
v-gl-tooltip.hover
:title="$options.i18n.dropdownHeader"
:header-text="$options.i18n.dropdownHeader"
:text="currentBranch"
icon="branch"
......
......@@ -31629,7 +31629,7 @@ msgstr ""
msgid "Survey Response"
msgstr ""
msgid "Switch Branch"
msgid "Switch branch"
msgstr ""
msgid "Switch branch/tag"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment