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

Commits on Jan 8, 2021

  1. pin task

    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
    KevinMwita7 committed Jan 8, 2021
    Configuration menu
    Copy the full SHA
    ede956d View commit details
    Browse the repository at this point in the history
  2. get done tasks count

    Created a getter method which filters the controller's model and returns the number of tasks that are complete
    KevinMwita7 committed Jan 8, 2021
    Configuration menu
    Copy the full SHA
    de077ba View commit details
    Browse the repository at this point in the history
  3. created toggle-complete component

    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
    KevinMwita7 committed Jan 8, 2021
    Configuration menu
    Copy the full SHA
    8644aa6 View commit details
    Browse the repository at this point in the history
  4. unpin task

    Added an onClick event handler onto the BSButton of the pinnedTask which sets index controller's pinnedTask value to null
    KevinMwita7 committed Jan 8, 2021
    Configuration menu
    Copy the full SHA
    7dee4d5 View commit details
    Browse the repository at this point in the history