Skip to content

Commit

Permalink
Merge pull request #4428 from camptocamp/min-max-dates
Browse files Browse the repository at this point in the history
Fix min max dates syncronisation on filters
  • Loading branch information
sbrunner authored Nov 29, 2018
2 parents 6d375cb + c987d42 commit 8dcf632
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/filter/ruleComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -424,21 +424,21 @@ exports.RuleController_ = class {
this.unlisteners_.push(this.scope_.$watch(
() => this.clone.getExpression(),
(newVal) => {
this.timeValueMode.minValue = newVal;
this.timeValueMode.minDefValue = newVal || this.createDate_();
}
));
// Watch 'lowerBoundary'
this.unlisteners_.push(this.scope_.$watch(
() => this.clone.lowerBoundary,
(newVal) => {
this.timeRangeMode.minValue = newVal;
this.timeRangeMode.minDefValue = newVal || this.createWeekAgoDate_();
}
));
// Watch 'upperBoundary'
this.unlisteners_.push(this.scope_.$watch(
() => this.clone.upperBoundary,
(newVal) => {
this.timeRangeMode.maxValue = newVal;
this.timeRangeMode.maxDefValue = newVal || this.createDate_();
}
));
} else if (this.clone.type === ngeoFormatAttributeType.GEOMETRY) {
Expand Down

0 comments on commit 8dcf632

Please sign in to comment.