Show restrictions in calendar only for selected resources
@@ -296,9 +296,13 @@ export default {
restrictionEvent.isGlobal = restriction.isGlobal
if (!restriction.isGlobal) restrictionEvent.resourceId = restriction.resources[j].id
this.restrictionEvents.push(restrictionEvent)
+
+ if (this.selectedResources.some(r => r.uuid === restrictionEvent.resourceId) ||
+ restrictionEvent.isGlobal) {
this.calendar.fullCalendar('renderEvent', restrictionEvent)
}
}
+ }
},
findDateForWeekday (startDate, weekday) {
