Commit d31e857e authored by Mark Florian's avatar Mark Florian

Fix component option order in vulnerabilities

This fixes `vue/order-in-components` violations in the
`{,ee/}app/assets/javascripts/vulnerabilities` directories.

Part of https://gitlab.com/gitlab-org/gitlab/-/issues/297216.
parent a1239653
...@@ -16,6 +16,26 @@ export default { ...@@ -16,6 +16,26 @@ export default {
RelatedIssuesBlock, RelatedIssuesBlock,
GlButton, GlButton,
}, },
inject: {
vulnerabilityId: {
default: 0,
},
projectFingerprint: {
default: '',
},
newIssueUrl: {
default: '',
},
reportType: {
default: '',
},
issueTrackingHelpPath: {
default: '',
},
permissionsHelpPath: {
default: '',
},
},
props: { props: {
endpoint: { endpoint: {
type: String, type: String,
...@@ -60,26 +80,6 @@ export default { ...@@ -60,26 +80,6 @@ export default {
return !this.isIssueAlreadyCreated && !this.isFetching && Boolean(this.newIssueUrl); return !this.isIssueAlreadyCreated && !this.isFetching && Boolean(this.newIssueUrl);
}, },
}, },
inject: {
vulnerabilityId: {
default: 0,
},
projectFingerprint: {
default: '',
},
newIssueUrl: {
default: '',
},
reportType: {
default: '',
},
issueTrackingHelpPath: {
default: '',
},
permissionsHelpPath: {
default: '',
},
},
created() { created() {
this.fetchRelatedIssues(); this.fetchRelatedIssues();
}, },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment