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
35b7fd7c
Commit
35b7fd7c
authored
Jan 13, 2020
by
Ezekiel Kigbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix move data to $options
parent
9c907069
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
16 deletions
+4
-16
ee/app/assets/javascripts/analytics/cycle_analytics/components/base.vue
...javascripts/analytics/cycle_analytics/components/base.vue
+3
-15
ee/spec/frontend/analytics/cycle_analytics/components/base_spec.js
...rontend/analytics/cycle_analytics/components/base_spec.js
+1
-1
No files found.
ee/app/assets/javascripts/analytics/cycle_analytics/components/base.vue
View file @
35b7fd7c
...
...
@@ -43,20 +43,6 @@ export default {
required
:
true
,
},
},
data
()
{
return
{
multiProjectSelect
:
true
,
dateOptions
:
[
7
,
30
,
90
],
groupsQueryParams
:
{
min_access_level
:
featureAccessLevel
.
EVERYONE
,
},
projectsQueryParams
:
{
per_page
:
PROJECTS_PER_PAGE
,
with_shared
:
false
,
order_by
:
'
last_activity_at
'
,
},
};
},
computed
:
{
...
mapState
([
'
featureFlags
'
,
...
...
@@ -200,6 +186,8 @@ export default {
this
.
updateSelectedDurationChartStages
(
stages
);
},
},
multiProjectSelect
:
true
,
dateOptions
:
[
7
,
30
,
90
],
groupsQueryParams
:
{
min_access_level
:
featureAccessLevel
.
EVERYONE
,
},
...
...
@@ -231,7 +219,7 @@ export default {
class=
"js-projects-dropdown-filter ml-md-1 mt-1 mt-md-0 dropdown-select"
:group-id=
"selectedGroup.id"
:query-params=
"$options.projectsQueryParams"
:multi-select=
"multiProjectSelect"
:multi-select=
"
$options.
multiProjectSelect"
@
selected=
"onProjectsSelect"
/>
<div
...
...
ee/spec/frontend/analytics/cycle_analytics/components/base_spec.js
View file @
35b7fd7c
...
...
@@ -189,7 +189,7 @@ describe('Cycle Analytics component', () => {
expect
.
objectContaining
({
queryParams
:
wrapper
.
vm
.
$options
.
projectsQueryParams
,
groupId
:
mockData
.
group
.
id
,
multiSelect
:
wrapper
.
vm
.
multiProjectSelect
,
multiSelect
:
wrapper
.
vm
.
$options
.
multiProjectSelect
,
}),
);
});
...
...
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