|
|
@@ -67,6 +67,14 @@ export class CalculatorComponent implements HsPanelComponent {
|
|
|
});
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * Used when product is changed, so the selected date can be reset
|
|
|
+ */
|
|
|
+ resetDate() {
|
|
|
+ this.calcService.selectedDate = undefined;
|
|
|
+ this.calcService.availableDates = undefined;
|
|
|
+ }
|
|
|
+
|
|
|
updateRangeSlider(value: string) {
|
|
|
this.calcService.dateCalendarSelects.next({date: value});
|
|
|
}
|