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

refactor: use date as model for date picker #1135

Merged
merged 3 commits into from
May 2, 2022

Conversation

dhhyi
Copy link
Collaborator

@dhhyi dhhyi commented Apr 21, 2022

PR Type

[x] Refactoring (no functional changes, no API changes)

What Is the Current Behavior?

The date pickers use a fixed formatted string as model. If any follow up wants to do something with the date, it has to be parsed again.

What Is the New Behavior?

Does this PR Introduce a Breaking Change?

[ ] Yes
[x] No

Other Information

AB#76130

@dhhyi dhhyi added enhancement Enhancement to an existing feature community Community contributions labels Apr 21, 2022
@dhhyi dhhyi self-assigned this Apr 21, 2022
@dhhyi dhhyi force-pushed the refactor/use-date-for-datepicker branch from da2b66d to cac0ff2 Compare April 21, 2022 12:24
@dhhyi dhhyi force-pushed the refactor/use-date-for-datepicker branch from cac0ff2 to 2cb0ab5 Compare April 21, 2022 14:12
@dhhyi dhhyi requested a review from MaxKless April 25, 2022 09:01
@dhhyi dhhyi removed their assignment Apr 25, 2022
@dhhyi dhhyi marked this pull request as ready for review April 25, 2022 09:01
MaxKless
MaxKless previously approved these changes May 2, 2022
Copy link
Collaborator

@MaxKless MaxKless left a comment

Choose a reason for hiding this comment

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

lgtm

@@ -82,11 +84,11 @@ export class BasketDesiredDeliveryDateComponent implements OnInit, OnChanges {
}

ngOnChanges(changes: SimpleChanges) {
const previous = this.getDesiredDeliveryDate(changes.basket?.previousValue);
const current = this.getDesiredDeliveryDate(changes.basket?.currentValue);

// we only care about the ddd, so only do anything if it has changed
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I thougth ddd was a typo 😅

Copy link
Collaborator

Choose a reason for hiding this comment

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

desired delivery date :D

@MaxKless MaxKless self-requested a review May 2, 2022 07:23
@MaxKless MaxKless merged commit b4e4005 into develop May 2, 2022
@MaxKless MaxKless deleted the refactor/use-date-for-datepicker branch May 2, 2022 07:25
SGrueber pushed a commit that referenced this pull request May 19, 2022
Co-authored-by: max.kless@googlemail.com <max.kless@googlemail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Community contributions enhancement Enhancement to an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants