Skip to content

Instantly share code, notes, and snippets.

@jasonmit
Last active December 11, 2018 09: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 jasonmit/366efcbe62a5b379192603263095d4c4 to your computer and use it in GitHub Desktop.
Save jasonmit/366efcbe62a5b379192603263095d4c4 to your computer and use it in GitHub Desktop.
Shared Task Containers
{{#each taskLists as |taskList|}}
<TaskList>
{{#each tasklist.tasks as |task|}}
{{!-- Same Container Component Types between the Read & Edit view --}}
{{#component (task-container-for task) as |c|}}
{{!-- ReadView is the current TaskComponent + read view of the Task Integration components --}}
{{c.TaskRead}}
{{/component}}
{{/each}}
</TaskList>
{{/if}}
<Sidebar>
{{#if (and (eq sidebar 'edit-task') selectedTask)}}
{{#component (task-container-for selectedTask) as |c|}}
{{c.TaskEdit}}
{{/component}}
{{else if (eq sidebar 'filtering')}}
<FilterBar />
{{/if}}
</Sidebar>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment