Skip to content

Conversation

jorgecod
Copy link
Contributor

@jorgecod jorgecod commented Mar 12, 2020

Issue details

  • When mouse over a project, a clock-in button should appear next to the project name.
  • When the clock in button is clicked, show the following fields: Activity, Jira ticket, Technology, and Notes.
  • Clock out button should be visible after clock in.

@jorgecod jorgecod force-pushed the TimeClock-ClockIn branch 3 times, most recently from f0e1d01 to ee5a5e6 Compare March 16, 2020 20:04
it("should set showfileds as true", () => {
const show = true;
component.showFields = show;
component.getShowFields(show);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems this function is changing showFields value. In this case, the field name should be:

setShowFields(show)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done 👌


getShowFields(show: boolean) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

definitely, the function name should be: setShowFields

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done 👌

Comment on lines 27 to 48
component.showFields = show;
component.setShowFields(show);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we setting this field to true twice?

@jorgecod jorgecod force-pushed the TimeClock-ClockIn branch from 2ceccec to 12a95bb Compare March 17, 2020 15:53
@enriquezrene enriquezrene merged commit ddfad12 into master Mar 17, 2020
@enriquezrene enriquezrene deleted the TimeClock-ClockIn branch March 17, 2020 16:00
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.

2 participants