Skip to content

Instantly share code, notes, and snippets.

@denzo
Created November 26, 2017 02:25
Show Gist options
  • Save denzo/32cd67be24fdf7b51dceeb812f3dd0c5 to your computer and use it in GitHub Desktop.
Save denzo/32cd67be24fdf7b51dceeb812f3dd0c5 to your computer and use it in GitHub Desktop.
...
{{#if (eq model.status STATUS_TO_DO)}}
{{#sc-button onClick=(action "startAction")}}Mark As In Progress{{/sc-button}}
{{else if (eq model.status STATUS_IN_PROGRESS)}}
{{#sc-button onClick=(action "setStatus" STATUS_DONE)}}Mark As Done{{/sc-button}}
{{/if}}
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment