Last active
June 15, 2021 08:21
-
-
Save BurningDog/e63d9dc8c0117a4f0096aef3fe381428 to your computer and use it in GitHub Desktop.
Tee sheet slot&
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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