Skip to content

Instantly share code, notes, and snippets.

@tmbtech
Created July 13, 2018 16:10
Show Gist options
  • Save tmbtech/39594f2b10e97e9e8b404adfabb3e491 to your computer and use it in GitHub Desktop.
Save tmbtech/39594f2b10e97e9e8b404adfabb3e491 to your computer and use it in GitHub Desktop.
Team Alerts Flow
Team Alerts Flow
Favorite Team
Select Fav Team -> Move team to Active Teams section and opt-in NewsHighlights Game Start and Final Score alerts for team
Move team to Active Teams section and opt-in NewsHighlights Game Start and Final Score alerts for team
Deselect Fav Team -> Do nothing
Do nothing
All Teams
Opt-in team alert -> Move team to Active Teams section
Move team to Active Teams section
Opt-out all alerts for team -> Move team to Teams section
Move team to Teams section
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