Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

One exclusive appointment #3

Closed
irvingsl opened this issue Oct 9, 2019 · 2 comments
Closed

One exclusive appointment #3

irvingsl opened this issue Oct 9, 2019 · 2 comments

Comments

@irvingsl
Copy link

irvingsl commented Oct 9, 2019

Could be an option, like if we set the maxReservableAppointments to 0, that only one appoitment is acceptable, when we click on another apointment, it automaticallys remove the first one.
I was trying to made that change, but I'm still too newbie in JS.

Thanks!

@roggervalf
Copy link
Owner

Hi irvingsl, maxReservableAppointments represents how many appointments can be selected. I put the deselection like mandatory because I thought that people will run a query for deselect that especific periods of time, so someone else could select an appointment in that periods, also people can select more appointment if they need. The way of selecting and remove the first one should have two transactions in the same function (one for delete the periods selected and one for create the selections in the new appointment periods). I base this way in some movie theaters apps from my country.
I hope you could use this package, if you have some other doubt, I would answer you as soon as possible.

@roggervalf
Copy link
Owner

Hi @irvingsl,
I already add a new feature that can help you.
I hope you can check it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants