Closed Lisesoee closed 7 years ago
Remember to check the boolean when inputting requests in table (similar to available taxis) and consider just deleting the table row when dispatching.
The boolean now flips, but the rows still need to be deleted
Realised that we never flip the isAvailable taxi boolean either, so added functionality for flipping this when placing order as well + removing the row in the js. The lines are removed even if there was an error though. I tried to delete them in the 'success' clause in the ajax-request, but its out of scope and much more difficult, and since the project is not about jQuery i decided to leave it for now. 👍 The issue is considered closed. 👍
It looks silly that the dispatched request is still on the pending request list