Last active
April 17, 2020 02:33
-
-
Save gbuszmicz/b328d9f023da9654da0a3396a2cd70c6 to your computer and use it in GitHub Desktop.
idle
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
idle | |
FETCHING -> fetching | |
fetching | |
FETCH_SUCCESS -> resolve | |
FETCH_ERROR -> reject | |
FETCH_EMPTY -> empty | |
resolve | |
ready | |
OPEN_ZOOM_MODAL -> zoomModal | |
OPEN_OFFER_MODAL -> offerModal | |
offerModal | |
CLOSE_OFFER_MODAL -> resolve | |
active | |
MAKE_OFFER -> offering | |
offering | |
OFFER_RESOLVE -> offerResolve | |
OFFER_REJECT -> offerReject | |
offerReject | |
MAKE_OFFER -> offering | |
offerResolve | |
zoomModal | |
CLOSE_ZOOM_MODAL -> resolve | |
reject | |
FETCHING -> fetching | |
empty |
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