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
2ee4bbef
Commit
2ee4bbef
authored
Apr 15, 2020
by
Dhiraj Bodicherla
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove GlNewButton in select summary component
parent
f347f2a3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
ee/app/assets/javascripts/security_dashboard/components/selection_summary.vue
...ripts/security_dashboard/components/selection_summary.vue
+4
-4
ee/spec/frontend/security_dashboard/components/selection_summary_spec.js
...d/security_dashboard/components/selection_summary_spec.js
+2
-2
No files found.
ee/app/assets/javascripts/security_dashboard/components/selection_summary.vue
View file @
2ee4bbef
<
script
>
import
{
s__
,
n__
}
from
'
~/locale
'
;
import
{
Gl
New
Button
,
GlFormSelect
}
from
'
@gitlab/ui
'
;
import
{
GlButton
,
GlFormSelect
}
from
'
@gitlab/ui
'
;
import
toast
from
'
~/vue_shared/plugins/global_toast
'
;
import
createFlash
from
'
~/flash
'
;
import
dismissVulnerability
from
'
../graphql/dismissVulnerability.graphql
'
;
...
...
@@ -12,7 +12,7 @@ const REASON_FALSE_POSITIVE = s__('Security Reports|False positive');
export
default
{
name
:
'
SelectionSummary
'
,
components
:
{
Gl
New
Button
,
GlButton
,
GlFormSelect
,
},
props
:
{
...
...
@@ -95,7 +95,7 @@ export default {
class=
"mx-3 w-auto"
:options=
"$options.dismissalReasons"
/>
<gl-
new-
button
<gl-button
type=
"submit"
class=
"js-no-auto-disable"
category=
"secondary"
...
...
@@ -103,7 +103,7 @@ export default {
:disabled=
"!canDismissVulnerability"
>
{{
s__
(
'
Security Reports|Dismiss Selected
'
)
}}
</gl-
new-
button>
</gl-button>
</form>
</div>
</
template
>
ee/spec/frontend/security_dashboard/components/selection_summary_spec.js
View file @
2ee4bbef
import
{
mount
}
from
'
@vue/test-utils
'
;
import
SelectionSummary
from
'
ee/security_dashboard/components/selection_summary.vue
'
;
import
{
GlFormSelect
,
Gl
New
Button
}
from
'
@gitlab/ui
'
;
import
{
GlFormSelect
,
GlButton
}
from
'
@gitlab/ui
'
;
import
createFlash
from
'
~/flash
'
;
import
toast
from
'
~/vue_shared/plugins/global_toast
'
;
...
...
@@ -21,7 +21,7 @@ describe('Selection Summary component', () => {
},
};
const
dismissButton
=
()
=>
wrapper
.
find
(
Gl
New
Button
);
const
dismissButton
=
()
=>
wrapper
.
find
(
GlButton
);
const
dismissMessage
=
()
=>
wrapper
.
find
({
ref
:
'
dismiss-message
'
});
const
formSelect
=
()
=>
wrapper
.
find
(
GlFormSelect
);
...
...
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