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
0f9921ac
Commit
0f9921ac
authored
Jan 18, 2022
by
Paul Gascou-Vaillancourt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make badge in false-positive-badge Pajamas compliant
parent
2f425df3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
11 deletions
+4
-11
ee/app/assets/javascripts/vulnerabilities/components/false_positive_badge.vue
...ripts/vulnerabilities/components/false_positive_badge.vue
+2
-5
ee/spec/frontend/vulnerabilities/__snapshots__/false_positive_badge_spec.js.snap
...abilities/__snapshots__/false_positive_badge_spec.js.snap
+2
-6
No files found.
ee/app/assets/javascripts/vulnerabilities/components/false_positive_badge.vue
View file @
0f9921ac
<
script
>
<
script
>
import
{
Gl
Icon
,
Gl
Popover
,
GlBadge
,
GlSprintf
,
GlLink
}
from
'
@gitlab/ui
'
;
import
{
GlPopover
,
GlBadge
,
GlSprintf
,
GlLink
}
from
'
@gitlab/ui
'
;
import
{
s__
}
from
'
~/locale
'
;
import
{
s__
}
from
'
~/locale
'
;
export
default
{
export
default
{
components
:
{
components
:
{
GlIcon
,
GlPopover
,
GlPopover
,
GlBadge
,
GlBadge
,
GlSprintf
,
GlSprintf
,
...
@@ -40,9 +39,7 @@ export default {
...
@@ -40,9 +39,7 @@ export default {
<
template
>
<
template
>
<div
v-if=
"canViewFalsePositive"
class=
"gl-display-inline-block"
>
<div
v-if=
"canViewFalsePositive"
class=
"gl-display-inline-block"
>
<gl-badge
ref=
"badge"
variant=
"warning"
>
<gl-badge
ref=
"badge"
icon=
"false-positive"
variant=
"warning"
/>
<gl-icon
name=
"false-positive"
/>
</gl-badge>
<gl-popover
ref=
"popover"
:target=
"target"
:title=
"$options.i18n.title"
placement=
"top"
>
<gl-popover
ref=
"popover"
:target=
"target"
:title=
"$options.i18n.title"
placement=
"top"
>
<gl-sprintf
:message=
"$options.i18n.message"
>
<gl-sprintf
:message=
"$options.i18n.message"
>
<template
#link
="
{ content }">
<template
#link
="
{ content }">
...
...
ee/spec/frontend/vulnerabilities/__snapshots__/false_positive_badge_spec.js.snap
View file @
0f9921ac
...
@@ -5,14 +5,10 @@ exports[`False positive badge component should render the alert badge 1`] = `
...
@@ -5,14 +5,10 @@ exports[`False positive badge component should render the alert badge 1`] = `
class="gl-display-inline-block"
class="gl-display-inline-block"
>
>
<gl-badge-stub
<gl-badge-stub
icon="false-positive"
size="md"
size="md"
variant="warning"
variant="warning"
>
<gl-icon-stub
name="false-positive"
size="16"
/>
/>
</gl-badge-stub>
<gl-popover-stub
<gl-popover-stub
cssclasses=""
cssclasses=""
...
...
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