-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Follow up fix datepicker #3901
Follow up fix datepicker #3901
Conversation
src/filter/ruleComponent.js
Outdated
@@ -227,12 +227,12 @@ exports.RuleController_ = class { | |||
* @export | |||
*/ | |||
this.timeRangeMode = { | |||
widget: /** @type {ngeox.TimePropertyWidgetEnum} */ ('datepicker'), | |||
maxValue: this.createDate_(), | |||
minValue: this.createWeekAgoDate_(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For me it should be used as def values ...
@@ -424,24 +424,21 @@ exports.RuleController_ = class { | |||
this.unlisteners_.push(this.scope_.$watch( | |||
() => this.clone.getExpression(), | |||
(newVal) => { | |||
const value = newVal === null ? this.createDate_() : newVal; | |||
this.timeValueMode.minValue = value; | |||
this.timeValueMode.minValue = newVal; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For that is this code for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not idea.
But since we now handle the null value correctly I suppose the ternary operation can be removed.
68a120f
to
eb9460d
Compare
…stanbul-reporter-2.0.1 Update karma-coverage-istanbul-reporter to the latest version 🚀
Add missing ng-if for share popup in desktop interface
eb9460d
to
6f98e0c
Compare
6f98e0c
to
69352e9
Compare
@sbrunner I fixed the issue with Travis. |
See #3899.
With this PR, the datepicker selection is: