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
187081d4
Commit
187081d4
authored
Mar 11, 2020
by
Brandon Labuschagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix analytics max date range
parent
4edbb1e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
ee/app/assets/javascripts/analytics/shared/components/daterange.vue
...ets/javascripts/analytics/shared/components/daterange.vue
+5
-1
No files found.
ee/app/assets/javascripts/analytics/shared/components/daterange.vue
View file @
187081d4
...
...
@@ -72,6 +72,10 @@ export default {
const
dayDifference
=
getDayDifference
(
this
.
startDate
,
this
.
endDate
);
return
this
.
includeSelectedDate
?
dayDifference
+
OFFSET_DATE_BY_ONE
:
dayDifference
;
},
effectiveMaxDateRange
()
{
const
{
includeSelectedDate
,
maxDateRange
}
=
this
;
return
includeSelectedDate
?
maxDateRange
-
OFFSET_DATE_BY_ONE
:
maxDateRange
;
},
},
};
</
script
>
...
...
@@ -86,7 +90,7 @@ export default {
:default-start-date=
"startDate"
:default-end-date=
"endDate"
:default-min-date=
"minDate"
:max-date-range=
"
m
axDateRange"
:max-date-range=
"
effectiveM
axDateRange"
:default-max-date=
"maxDate"
theme=
"animate-picker"
start-picker-class=
"js-daterange-picker-from d-flex flex-column flex-lg-row align-items-lg-center mr-lg-2 mb-2 mb-md-0"
...
...
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