Skip to content

Instantly share code, notes, and snippets.

@nathan-muir
Last active January 14, 2019 06:11
Show Gist options
  • Save nathan-muir/44a855837ff312ce2ae87ae0f32f7680 to your computer and use it in GitHub Desktop.
Save nathan-muir/44a855837ff312ce2ae87ae0f32f7680 to your computer and use it in GitHub Desktop.
Invoicing
Invoicing
start
fetch -> awaiting_send
migrated -> done
awaiting_send
begin -> sending
sending
skip -> skipped
done -> awaiting_import
error -> error_sending
error_sending
reset -> awaiting_send
awaiting_import
begin -> importing
importing
error -> error_importing
done -> done
error_importing
reset -> awaiting_import
done
skipped
invalid
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