Commit b85164c6 authored by Kev's avatar Kev Committed by Kushal Pandya

Add tooltips to requirement import and export buttons

parent 7d755fad
---
title: Add tooltips to requirement import and export buttons
merge_request: 52582
author: Kev @KevSlashNull
type: fixed
<script> <script>
import { GlBadge, GlButton, GlButtonGroup, GlTabs, GlTab } from '@gitlab/ui'; import { GlBadge, GlButton, GlButtonGroup, GlTabs, GlTab, GlTooltipDirective } from '@gitlab/ui';
import { FilterState } from '../constants'; import { FilterState } from '../constants';
export default { export default {
directives: {
GlTooltip: GlTooltipDirective,
},
FilterState, FilterState,
components: { components: {
GlBadge, GlBadge,
...@@ -89,6 +92,8 @@ export default { ...@@ -89,6 +92,8 @@ export default {
<gl-button-group> <gl-button-group>
<gl-button <gl-button
v-if="showUploadCsv" v-if="showUploadCsv"
v-gl-tooltip
:title="__('Export as CSV')"
category="secondary" category="secondary"
:disabled="showCreateForm" :disabled="showCreateForm"
icon="export" icon="export"
...@@ -96,6 +101,8 @@ export default { ...@@ -96,6 +101,8 @@ export default {
/> />
<gl-button <gl-button
v-if="showUploadCsv" v-if="showUploadCsv"
v-gl-tooltip
:title="__('Import requirements')"
category="secondary" category="secondary"
class="js-import-requirements qa-import-requirements-button" class="js-import-requirements qa-import-requirements-button"
:disabled="showCreateForm" :disabled="showCreateForm"
......
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