From a35d36b84fd2c32d9a98f478b27f275433bc3527 Mon Sep 17 00:00:00 2001 From: alexm Date: Wed, 17 Nov 2021 13:15:59 +0100 Subject: [PATCH] fix(zone): calendar event --- modules/zone/front/calendar/index.js | 2 ++ modules/zone/front/events/index.html | 1 + 2 files changed, 3 insertions(+) diff --git a/modules/zone/front/calendar/index.js b/modules/zone/front/calendar/index.js index 00b6176c7..a24d10aef 100644 --- a/modules/zone/front/calendar/index.js +++ b/modules/zone/front/calendar/index.js @@ -45,6 +45,8 @@ class Controller extends Component { let date = new Date(this.date.getTime()); date.setMonth(date.getMonth() + (this.nMonths * direction)); this.date = date; + + this.emit('step'); } get data() { diff --git a/modules/zone/front/events/index.html b/modules/zone/front/events/index.html index 25ec2827f..e71a1ae26 100644 --- a/modules/zone/front/events/index.html +++ b/modules/zone/front/events/index.html @@ -3,6 +3,7 @@ vn-id="calendar" data="data" on-selection="$ctrl.onSelection($days, $type, $weekday, $events, $exclusions)" + on-step="$ctrl.refresh()" class="vn-w-md">