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
d889f7a3
Commit
d889f7a3
authored
Sep 08, 2020
by
Annabel Dunstone Gray
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Migrate dropdown and button instances in vulnerability state dropdown
parent
dd2d44cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
ee/app/assets/javascripts/vulnerabilities/components/vulnerability_state_dropdown.vue
...lnerabilities/components/vulnerability_state_dropdown.vue
+8
-8
No files found.
ee/app/assets/javascripts/vulnerabilities/components/vulnerability_state_dropdown.vue
View file @
d889f7a3
<
script
>
import
{
GlD
eprecatedDropdown
,
GlIcon
,
GlDeprecated
Button
}
from
'
@gitlab/ui
'
;
import
{
GlD
ropdown
,
GlIcon
,
Gl
Button
}
from
'
@gitlab/ui
'
;
import
{
VULNERABILITY_STATE_OBJECTS
}
from
'
../constants
'
;
export
default
{
states
:
Object
.
values
(
VULNERABILITY_STATE_OBJECTS
),
components
:
{
GlD
eprecatedDropdown
,
GlIcon
,
GlDeprecated
Button
},
components
:
{
GlD
ropdown
,
GlIcon
,
Gl
Button
},
props
:
{
// Initial vulnerability state from the parent. This is used to disable the Change Status button
...
...
@@ -56,7 +56,7 @@ export default {
</
script
>
<
template
>
<gl-d
eprecated-d
ropdown
<gl-dropdown
ref=
"dropdown"
menu-class=
"p-0"
toggle-class=
"text-capitalize"
...
...
@@ -84,17 +84,17 @@ export default {
</li>
<div
class=
"text-right p-3"
>
<gl-
deprecated-
button
ref=
"cancel-button"
class=
"mr-2"
@
click=
"closeDropdown"
>
<gl-button
ref=
"cancel-button"
class=
"mr-2"
@
click=
"closeDropdown"
>
{{
__
(
'
Cancel
'
)
}}
</gl-
deprecated-
button>
<gl-
deprecated-
button
</gl-button>
<gl-button
ref=
"save-button"
variant=
"success"
:disabled=
"selected === initialStateItem"
@
click=
"saveState(selected)"
>
{{
s__
(
'
VulnerabilityManagement|Change status
'
)
}}
</gl-
deprecated-
button>
</gl-button>
</div>
</gl-d
eprecated-d
ropdown>
</gl-dropdown>
</
template
>
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