Skip to content

Instantly share code, notes, and snippets.

@BurningDog
Last active June 15, 2021 08:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BurningDog/e63d9dc8c0117a4f0096aef3fe381428 to your computer and use it in GitHub Desktop.
Save BurningDog/e63d9dc8c0117a4f0096aef3fe381428 to your computer and use it in GitHub Desktop.
Tee sheet slot&
Tee sheet slot&
Availability
Available
Select slot -> Locked
Unavailable
Admin makes slot available -> Available
Admin deletes slot -> Slot deleted
Slot deleted
Note - admin can create a new slot
Locked&
Checks
Availability check
Is booking available?
Yes -> Booking confirmation
No -> Not available
Not available
Error - booking not available
Final availability check
Final Is booking available?
Yes -> Booked
No -> Not available
Booking confirmation
Confirm booking -> Final availability check
Timed out -> Available
Booked
Booking cancelled -> Available
Admin functions
Action
Admin makes slot unavailable -> Unavailable
Admin deletes slot -> Slot deleted
function render(model){
let current_state_name = model.active_states[0].name;
return $("h1",
{style: {color: "darkBlue"}},
`The current state is: ${current_state_name}`);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment