Skip to content

Conversation

KevinMwita7
Copy link

@KevinMwita7 KevinMwita7 commented Jan 8, 2021

Completed series of provided tasks for the Tunapanda Ember Frontend Challenge.

Created an action called pinTask in the index controller and passed it down to task-list component which in turn passes it to its single-task child component.
On click of the pin button, the single-task component calls the action that was passed down to it by its parent task-list component, providing it with the task. The task-list component in turns calls the
pinTask in the index controller which updates its pinnedTask value
Created a getter method which filters the controller's model and returns the number of tasks that are complete
Created a component ToggleComponent which returns a button. Using an inline if statement flip the current isComplete state of the task. Depending on the isComplete state, either show done or undo text on the button
Added an onClick event handler onto the BSButton of the pinnedTask which sets index controller's pinnedTask value to null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant