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
467a3a92
Commit
467a3a92
authored
Dec 05, 2019
by
Paul Gascou-Vaillancourt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use glFeatureFlags mixin
parent
1c854797
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
166 additions
and
114 deletions
+166
-114
ee/app/assets/javascripts/vue_shared/security_reports/grouped_security_reports_app.vue
..._shared/security_reports/grouped_security_reports_app.vue
+3
-2
ee/spec/javascripts/vue_shared/security_reports/grouped_security_reports_app_spec.js
...red/security_reports/grouped_security_reports_app_spec.js
+163
-112
No files found.
ee/app/assets/javascripts/vue_shared/security_reports/grouped_security_reports_app.vue
View file @
467a3a92
<
script
>
import
{
mapActions
,
mapState
,
mapGetters
}
from
'
vuex
'
;
import
{
componentNames
}
from
'
ee/reports/components/issue_body
'
;
import
glFeatureFlagsMixin
from
'
~/vue_shared/mixins/gl_feature_flags_mixin
'
;
import
ReportSection
from
'
~/reports/components/report_section.vue
'
;
import
SummaryRow
from
'
~/reports/components/summary_row.vue
'
;
import
IssuesList
from
'
~/reports/components/issues_list.vue
'
;
...
...
@@ -18,7 +19,7 @@ export default {
IssueModal
,
Icon
,
},
mixins
:
[
securityReportsMixin
],
mixins
:
[
securityReportsMixin
,
glFeatureFlagsMixin
()
],
props
:
{
enabledReports
:
{
type
:
Object
,
...
...
@@ -324,7 +325,7 @@ export default {
fetchSastDiff
:
'
fetchDiff
'
,
}),
isMergeRequestReportApiEnabled
(
type
)
{
return
Boolean
(
gon
.
features
&&
gon
.
f
eatures
[
`
${
type
}
MergeRequestReportApi`
]);
return
Boolean
(
this
.
glF
eatures
[
`
${
type
}
MergeRequestReportApi`
]);
},
hasReportsType
(
type
)
{
if
(
this
.
isMergeRequestReportApiEnabled
(
type
))
{
...
...
ee/spec/javascripts/vue_shared/security_reports/grouped_security_reports_app_spec.js
View file @
467a3a92
This diff is collapsed.
Click to expand it.
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