Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tunapanda Ember Frontend Challenge #4

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

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