[IMP] web: allow to change the scale also when changing the date

This commit allow to change the scale at the same time as changing the date.

Task ID: 1891957
This commit is contained in:
Romeo Fragomeli
2021-01-28 13:55:50 +00:00
parent c96e3b96f3
commit ef9ecf1388
@@ -236,6 +236,9 @@ var CalendarController = AbstractController.extend({
// When clicking on a random day of a random other week, switch to week view
this.model.setScale('week');
}
if (event.data.scale) {
this.model.setScale(event.data.scale);
}
this.model.setDate(event.data.date);
this.reload();
},