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
43998b98
Commit
43998b98
authored
Mar 29, 2021
by
Savas Vedova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use v-bind instead of individual props
parent
c9ec5e32
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
13 deletions
+6
-13
ee/app/assets/javascripts/vue_shared/security_reports/components/modal_footer.vue
...s/vue_shared/security_reports/components/modal_footer.vue
+6
-13
No files found.
ee/app/assets/javascripts/vue_shared/security_reports/components/modal_footer.vue
View file @
43998b98
<
script
>
import
{
GlButton
,
GlIcon
}
from
'
@gitlab/ui
'
;
import
{
GlButton
}
from
'
@gitlab/ui
'
;
import
DismissButton
from
'
ee/vue_shared/security_reports/components/dismiss_button.vue
'
;
import
SplitButton
from
'
ee/vue_shared/security_reports/components/split_button.vue
'
;
import
{
s__
}
from
'
~/locale
'
;
...
...
@@ -9,7 +9,6 @@ export default {
DismissButton
,
GlButton
,
SplitButton
,
GlIcon
,
},
props
:
{
modal
:
{
...
...
@@ -75,15 +74,16 @@ export default {
const
issueButton
=
{
name
:
this
.
createIssueButtonText
,
tagline
:
s__
(
'
ciReport|Investigate this vulnerability by creating an issue
'
),
isLoading
:
this
.
isCreatingIssue
,
icon
:
this
.
vulnerability
.
create_jira_issue_url
?
'
external-link
'
:
undefined
,
loading
:
this
.
isCreatingIssue
,
target
:
this
.
vulnerability
.
create_jira_issue_url
?
'
_blank
'
:
undefined
,
action
:
this
.
vulnerability
.
create_jira_issue_url
?
undefined
:
'
createNewIssue
'
,
href
:
this
.
vulnerability
.
create_jira_issue_url
,
icon
:
this
.
vulnerability
.
create_jira_issue_url
?
'
external-link
'
:
undefined
,
};
const
MRButton
=
{
name
:
s__
(
'
ciReport|Resolve with merge request
'
),
tagline
:
s__
(
'
ciReport|Automatically apply the patch in a new branch
'
),
isL
oading
:
this
.
isCreatingMergeRequest
,
l
oading
:
this
.
isCreatingMergeRequest
,
action
:
'
createMergeRequest
'
,
};
const
DownloadButton
=
{
...
...
@@ -139,21 +139,14 @@ export default {
<gl-button
v-else-if=
"actionButtons.length > 0"
:loading=
"actionButtons[0].isLoading
"
v-bind=
"actionButtons[0]
"
:disabled=
"disabled"
variant=
"success"
category=
"secondary"
data-testid=
"create-issue-button"
data-qa-selector=
"create_issue_button"
:target=
"actionButtons[0].href ? '_blank' : undefined"
:href=
"actionButtons[0].href"
@
click=
"$emit(actionButtons[0].action)"
>
<gl-icon
v-if=
"actionButtons[0].icon"
:name=
"actionButtons[0].icon"
class=
"gl-vertical-align-middle"
/>
{{
__
(
actionButtons
[
0
].
name
)
}}
</gl-button>
</div>
...
...
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