savoirfairelinux / sous-chef

Sous-Chef is a web application to help organizations to plan and deliver meals, and to manage clients files.
GNU Affero General Public License v3.0
67 stars 45 forks source link

Disable "Order Generation" when already done #797

Open kousu opened 7 years ago

kousu commented 7 years ago

Expected Behaviour

On /delivery/order/, I would expect that once the order generation is done, the button to do it would be disabled or at least greyed out.

Actual Behaviour

orders_generate

It took me 20 minutes wondering why the button was spinning everytime I clicked it and not doing anything before I realized it had loaded with the orders pre-generated.

Steps to reproduce

Click "Kitchen Count"

lingxiaoyang commented 7 years ago

@kousu Perhaps it is better to explain the use of this button somewhere on the page. I was a little bit confused at first but I did find the button useful in particular situations (in case the order generation doesn't work, for example).

@lamontfr Do you know more of the design of this button? I have no prior knowledge on this part...

lamontfr commented 7 years ago

@kousu @lingxiaoyang This button is necessary to handle these cases :

Therefore it is good practice to click "generate orders" as the first step of the kitchen count.