Skip to content

Commit

Permalink
feat(ZMS-815): fix preselecting provider
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Manjencic committed Jan 24, 2024
1 parent 5c87491 commit 2989492
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions frontend/src/components/TheCalendar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,15 @@ export default {
return
}
if (this.$store.state.data.appointment && this.$store.state.data.appointment.locationId) {
this.showForProvider({
id: this.$store.state.data.appointment.locationId,
name: this.$store.state.data.appointment.location
})
return
}
if (this.$store.state.data.service) {
this.showForProvider(this.$store.state.data.service.providers[0])
}
Expand Down
1 change: 1 addition & 0 deletions frontend/src/store/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ export default {
},
startRebooking (store) {
store.state.isRebooking = true
store.state.preselectedProvider = null
store.state.step = 2
store.state.openedPanel = 1
store.state.confirmedAppointment = null
Expand Down

0 comments on commit 2989492

Please sign in to comment.