Skip to content

Instantly share code, notes, and snippets.

@michaloo
Last active November 19, 2019 19:10
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 michaloo/6ddb46dc724df760243c3102c3babdd0 to your computer and use it in GitHub Desktop.
Save michaloo/6ddb46dc724df760243c3102c3babdd0 to your computer and use it in GitHub Desktop.
Dashboard
Dashboard
Form Disabled
save credentials -> updated settings
Form Enabled
Install connector -> Stored setupRequired
dashboard notified setupRequired
disable form -> Form Disabled
dashboard notified ok
enable form -> Form Enabled
Connector
connector notified about settings update
settings are correct -> ok
settings are not correct -> setupRequired
setupRequired
update platform -> Stored setupRequired
ok
update platform -> Stored ok
Platform
updated settings
notify connector -> connector notified about settings update
Stored setupRequired
notify dashboard setupRequired -> dashboard notified setupRequired
Stored ok
notify dashboard ok -> dashboard notified ok
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