Commit efa13ca6 authored by Natalia Tepluhina's avatar Natalia Tepluhina Committed by Tim Zallmann

Add a tooltip to Add Designs button

parent 334b64fc
<script>
import { GlButton, GlLoadingIcon } from '@gitlab/ui';
import { GlButton, GlLoadingIcon, GlTooltipDirective } from '@gitlab/ui';
export default {
components: {
GlButton,
GlLoadingIcon,
},
directives: {
GlTooltip: GlTooltipDirective,
},
props: {
isSaving: {
type: Boolean,
......@@ -25,7 +28,17 @@ export default {
<template>
<div>
<gl-button :disabled="isSaving" variant="primary" @click="openFileUpload">
<gl-button
v-gl-tooltip.hover
:title="
s__(
'DesignManagement|Adding a design with the same filename replaces the file in a new version.',
)
"
:disabled="isSaving"
variant="primary"
@click="openFileUpload"
>
{{ s__('DesignManagement|Add designs') }}
<gl-loading-icon v-if="isSaving" inline class="ml-1" />
</gl-button>
......
---
title: Add a tooltip to Add Designs button
merge_request: 15471
author:
type: feature
......@@ -5,6 +5,8 @@ exports[`Design management upload button component renders inverted upload desig
isinverted="true"
>
<glbutton-stub
data-original-title="Adding a design with the same filename replaces the file in a new version."
title=""
variant="primary"
>
......@@ -26,7 +28,9 @@ exports[`Design management upload button component renders inverted upload desig
exports[`Design management upload button component renders loading icon 1`] = `
<div>
<glbutton-stub
data-original-title="Adding a design with the same filename replaces the file in a new version."
disabled="true"
title=""
variant="primary"
>
......@@ -54,6 +58,8 @@ exports[`Design management upload button component renders loading icon 1`] = `
exports[`Design management upload button component renders upload design button 1`] = `
<div>
<glbutton-stub
data-original-title="Adding a design with the same filename replaces the file in a new version."
title=""
variant="primary"
>
......
......@@ -4960,6 +4960,9 @@ msgstr ""
msgid "DesignManagement|Add designs"
msgstr ""
msgid "DesignManagement|Adding a design with the same filename replaces the file in a new version."
msgstr ""
msgid "DesignManagement|An error occurred while loading designs. Please try again."
msgstr ""
......
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