Commit ecc42725 authored by Frédéric Caplette's avatar Frédéric Caplette

Merge branch '331687-add-switch-branch-tooltip-editor' into 'master'

Adds tooltip for pipeline editor branch switcher

See merge request gitlab-org/gitlab!63675
parents 7daa8a09 dd06e804
......@@ -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"
......
......@@ -31650,7 +31650,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