Commit 839366e 1 parent 110bf64 commit 839366e Copy full SHA for 839366e
File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 2
2
div
3
3
div
4
4
b-alert( v-if ="mode == 'range' && invalidDaterange" , variant ="warning" , show )
5
- | The selected date range is invalid. The second date must be greater than the first date.
5
+ | The selected date range is invalid. The second date must be greater or equal to the first date.
6
6
b-alert( v-if ="mode == 'range' && daterangeTooLong" , variant ="warning" , show )
7
7
| The selected date range is too long. The maximum is {{ maxDuration/(24*60*60) }} days.
8
8
@@ -83,7 +83,7 @@ export default {
83
83
value: {
84
84
get () {
85
85
if (this .mode == ' range' && this .start && this .end ) {
86
- return [moment (this .start ), moment (this .end )];
86
+ return [moment (this .start ), moment (this .end ). add ( 1 , ' day ' ) ];
87
87
} else {
88
88
return [moment ().subtract (this .duration , ' seconds' ), moment ()];
89
89
}
@@ -93,7 +93,7 @@ export default {
93
93
return ! (this .start && this .end );
94
94
},
95
95
invalidDaterange () {
96
- return moment (this .start ) >= moment (this .end );
96
+ return moment (this .start ) > moment (this .end );
97
97
},
98
98
daterangeTooLong () {
99
99
return moment (this .start ).add (this .maxDuration , ' seconds' ).isBefore (moment (this .end ));
You can’t perform that action at this time.
0 commit comments