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
1664c740
Commit
1664c740
authored
Sep 30, 2020
by
Kev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add canCreateIssue computed value
parent
8c5ff0fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
ee/app/assets/javascripts/vulnerabilities/components/related_issues.vue
...javascripts/vulnerabilities/components/related_issues.vue
+4
-1
No files found.
ee/app/assets/javascripts/vulnerabilities/components/related_issues.vue
View file @
1664c740
...
@@ -59,6 +59,9 @@ export default {
...
@@ -59,6 +59,9 @@ export default {
isIssueAlreadyCreated
()
{
isIssueAlreadyCreated
()
{
return
Boolean
(
this
.
state
.
relatedIssues
.
find
(
i
=>
i
.
lockIssueRemoval
));
return
Boolean
(
this
.
state
.
relatedIssues
.
find
(
i
=>
i
.
lockIssueRemoval
));
},
},
canCreateIssue
()
{
return
!
this
.
isIssueAlreadyCreated
&&
!
this
.
isFetching
&&
Boolean
(
this
.
createIssueUrl
);
},
},
},
inject
:
{
inject
:
{
vulnerabilityId
:
{
vulnerabilityId
:
{
...
@@ -261,7 +264,7 @@ export default {
...
@@ -261,7 +264,7 @@ export default {
<
template
#headerText
>
<
template
#headerText
>
{{
$options
.
i18n
.
relatedIssues
}}
{{
$options
.
i18n
.
relatedIssues
}}
</
template
>
</
template
>
<
template
v-if=
"
!isIssueAlreadyCreated && !isFetching && createIssueUrl
"
#headerActions
>
<
template
v-if=
"
canCreateIssue
"
#headerActions
>
<gl-button
<gl-button
ref=
"createIssue"
ref=
"createIssue"
variant=
"success"
variant=
"success"
...
...
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