Skip to content

bugfix: Inconsistency when changing period length#193

Merged
johan-bjareholt merged 1 commit intomasterfrom
dev/period-length-fix
Apr 28, 2020
Merged

bugfix: Inconsistency when changing period length#193
johan-bjareholt merged 1 commit intomasterfrom
dev/period-length-fix

Conversation

@johan-bjareholt
Copy link
Copy Markdown
Member

div.p-1(v-if="periodLength === 'day'")
input.form-control(id="date" type="date" :value="date" :max="today"
@change="setDate($event.target.value)")
@change="setDate($event.target.value, periodLength)")
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This was the real dealbreaker, we were not passing the periodLength to this function here.

@ErikBjare
Copy link
Copy Markdown
Member

I made the same fix in #183 before you opened this PR.

@johan-bjareholt
Copy link
Copy Markdown
Member Author

I made the same fix in #183 before you opened this PR.

@ErikBjare That's not enough, in the setDate function you are still using this.periodLengthMoment which is still the previos periodLength.

I'm merging this, the conflict should be easy to solve (or maybe git can even resolve it automatically).

@johan-bjareholt johan-bjareholt merged commit 51bab94 into master Apr 28, 2020
@johan-bjareholt johan-bjareholt deleted the dev/period-length-fix branch April 28, 2020 14:54
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.

Incorrect week number displayed in Activity report

2 participants