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
916984f0
Commit
916984f0
authored
Aug 20, 2021
by
Daniel Tian
Committed by
Savas Vedova
Aug 20, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not truncate vulnerability report filter dropdown items
parent
86022ed9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
8 deletions
+6
-8
ee/app/assets/javascripts/security_dashboard/components/shared/filters/filter_item.vue
...urity_dashboard/components/shared/filters/filter_item.vue
+3
-5
ee/app/assets/javascripts/security_dashboard/components/shared/filters/project_filter.vue
...ty_dashboard/components/shared/filters/project_filter.vue
+1
-1
ee/spec/frontend/security_dashboard/components/shared/filters/filter_item_spec.js
...y_dashboard/components/shared/filters/filter_item_spec.js
+2
-2
No files found.
ee/app/assets/javascripts/security_dashboard/components/shared/filters/filter_item.vue
View file @
916984f0
<
script
>
<
script
>
import
{
GlDropdownItem
,
GlTruncate
}
from
'
@gitlab/ui
'
;
import
{
GlDropdownItem
}
from
'
@gitlab/ui
'
;
export
default
{
export
default
{
components
:
{
GlDropdownItem
,
GlTruncate
},
components
:
{
GlDropdownItem
},
props
:
{
props
:
{
isChecked
:
{
isChecked
:
{
type
:
Boolean
,
type
:
Boolean
,
...
@@ -29,8 +29,6 @@ export default {
...
@@ -29,8 +29,6 @@ export default {
:data-qa-selector=
"qaSelector"
:data-qa-selector=
"qaSelector"
@
click.native.capture.stop=
"$emit('click')"
@
click.native.capture.stop=
"$emit('click')"
>
>
<slot>
<slot>
{{
text
}}
</slot>
<gl-truncate
:text=
"text"
/>
</slot>
</gl-dropdown-item>
</gl-dropdown-item>
</
template
>
</
template
>
ee/app/assets/javascripts/security_dashboard/components/shared/filters/project_filter.vue
View file @
916984f0
...
@@ -229,7 +229,7 @@ export default {
...
@@ -229,7 +229,7 @@ export default {
:is-checked=
"isSelected(project.id)"
:is-checked=
"isSelected(project.id)"
@
click=
"toggleOption(project)"
@
click=
"toggleOption(project)"
>
>
<div
v-safe-html=
"highlightSearchTerm(project.name)"
class=
"gl-text-truncate"
></div>
<div
v-safe-html=
"highlightSearchTerm(project.name)"
></div>
</filter-item>
</filter-item>
</
template
>
</
template
>
</filter-body>
</filter-body>
...
...
ee/spec/frontend/security_dashboard/components/shared/filters/filter_item_spec.js
View file @
916984f0
...
@@ -24,10 +24,10 @@ describe('Filter Item component', () => {
...
@@ -24,10 +24,10 @@ describe('Filter Item component', () => {
});
});
describe
(
'
name
'
,
()
=>
{
describe
(
'
name
'
,
()
=>
{
it
(
'
shows the
name when the name
prop is passed in
'
,
()
=>
{
it
(
'
shows the
given text when the "text"
prop is passed in
'
,
()
=>
{
const
text
=
'
some name
'
;
const
text
=
'
some name
'
;
createWrapper
({
text
});
createWrapper
({
text
});
expect
(
name
().
props
(
'
text
'
)).
toBe
(
text
);
expect
(
wrapper
.
text
()).
toContain
(
text
);
});
});
it
(
'
shows slot content when slot content is passed in
'
,
()
=>
{
it
(
'
shows slot content when slot content is passed in
'
,
()
=>
{
...
...
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