Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
736e7a6d
Commit
736e7a6d
authored
Aug 02, 2021
by
Fernando
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add tooltip to No Target text in corpus management
* Add text copy to tooltip Changelog: added
parent
94120bc6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
2 deletions
+10
-2
ee/app/assets/javascripts/security_configuration/corpus_management/components/columns/target.vue
...iguration/corpus_management/components/columns/target.vue
+6
-2
ee/spec/frontend/security_configuration/corpus_management/components/columns/__snapshots__/target_spec.js.snap
...ment/components/columns/__snapshots__/target_spec.js.snap
+1
-0
locale/gitlab.pot
locale/gitlab.pot
+3
-0
No files found.
ee/app/assets/javascripts/security_configuration/corpus_management/components/columns/target.vue
View file @
736e7a6d
<
script
>
import
{
GlIcon
}
from
'
@gitlab/ui
'
;
import
{
GlIcon
,
GlTooltipDirective
}
from
'
@gitlab/ui
'
;
import
{
s__
}
from
'
~/locale
'
;
export
default
{
components
:
{
GlIcon
,
},
directives
:
{
GlTooltip
:
GlTooltipDirective
,
},
props
:
{
target
:
{
type
:
String
,
...
...
@@ -14,6 +17,7 @@ export default {
},
i18n
:
{
notSet
:
s__
(
'
CorpusManagement|Not Set
'
),
noSetInfo
:
s__
(
'
CorpusManagement|To use this corpus, edit the corresponding YAML file
'
),
},
computed
:
{
hasTarget
()
{
...
...
@@ -24,7 +28,7 @@ export default {
</
script
>
<
template
>
<span
v-if=
"hasTarget"
class=
"gl-text-gray-900"
>
{{
target
}}
</span>
<span
v-else
class=
"gl-text-gray-900
"
>
<span
v-else
v-gl-tooltip
.
hover
class=
"gl-text-gray-900"
:title=
"$options.i18n.noSetInfo
"
>
<gl-icon
class=
"gl-mr-1"
:size=
"16"
name=
"information-o"
/>
{{
this
.
$options
.
i18n
.
notSet
}}
</span>
...
...
ee/spec/frontend/security_configuration/corpus_management/components/columns/__snapshots__/target_spec.js.snap
View file @
736e7a6d
...
...
@@ -11,6 +11,7 @@ exports[`Target component renders target 1`] = `
exports[`Target component without target renders Not Set with icon 1`] = `
<span
class="gl-text-gray-900"
title="To use this corpus, edit the corresponding YAML file"
>
<gl-icon-stub
class="gl-mr-1"
...
...
locale/gitlab.pot
View file @
736e7a6d
...
...
@@ -9169,6 +9169,9 @@ msgstr ""
msgid "CorpusManagement|Target"
msgstr ""
msgid "CorpusManagement|To use this corpus, edit the corresponding YAML file"
msgstr ""
msgid "CorpusManagement|Total Size: %{totalSize}"
msgstr ""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment