Skip to content

Commit

Permalink
LIMS-303: Show visits from other villages on user calendar
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Williams committed Feb 9, 2024
1 parent 4675d06 commit 1388196
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions client/src/js/modules/calendar/views/calendar-view.vue
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ export default {
all: 1,
}
queryParams.ty = this.proposalType
if (app.staff) queryParams.ty = this.proposalType
if (this.selectedBeamline !== 'all') queryParams.bl = this.selectedBeamline
const visitsCollection = new Visits(null, {
Expand Down Expand Up @@ -477,10 +477,14 @@ export default {
},
watch: {
currentYear: {
handler: 'fetchVisitsCalendar'
handler: function(newVal, oldVal) {
if (oldVal != null) this.fetchVisitsCalendar()
}
},
currentMonth: {
handler: 'fetchVisitsCalendar'
handler: function(newVal, oldVal) {
if (oldVal != null) this.fetchVisitsCalendar()
}
}
}
}
Expand Down

0 comments on commit 1388196

Please sign in to comment.