Skip to content

Commit

Permalink
fix(foxy-admin-subscription-form): revert to iso-long format in start…
Browse files Browse the repository at this point in the history
…/next/end dates
  • Loading branch information
pheekus committed Jan 20, 2025
1 parent 7c0a54e commit 4e957d3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ describe('AdminSubscriptionForm', () => {

expect(control?.localName).to.equal('foxy-internal-date-control');
expect(control).to.have.attribute('layout', 'summary-item');
expect(control).to.have.attribute('format', 'iso-long');
});

it('renders frequency control inside of the general summary control', async () => {
Expand Down Expand Up @@ -232,6 +233,7 @@ describe('AdminSubscriptionForm', () => {

expect(control?.localName).to.equal('foxy-internal-date-control');
expect(control).to.have.attribute('layout', 'summary-item');
expect(control).to.have.attribute('format', 'iso-long');
});

it('renders date control for end date inside of the general summary control', async () => {
Expand All @@ -251,6 +253,7 @@ describe('AdminSubscriptionForm', () => {

expect(control?.localName).to.equal('foxy-internal-date-control');
expect(control).to.have.attribute('layout', 'summary-item');
expect(control).to.have.attribute('format', 'iso-long');
});

it('renders summary control with overdue information', async () => {
Expand Down
13 changes: 10 additions & 3 deletions src/elements/public/AdminSubscriptionForm/AdminSubscriptionForm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,17 +53,24 @@ export class AdminSubscriptionForm extends Base<Data> {
</foxy-internal-admin-subscription-form-error>
<foxy-internal-summary-control infer="general">
<foxy-internal-date-control layout="summary-item" infer="start-date">
<foxy-internal-date-control format="iso-long" layout="summary-item" infer="start-date">
</foxy-internal-date-control>
<foxy-internal-frequency-control
layout="summary-item"
infer="frequency"
allow-twice-a-month
>
</foxy-internal-frequency-control>
<foxy-internal-date-control layout="summary-item" infer="next-transaction-date">
<foxy-internal-date-control
format="iso-long"
layout="summary-item"
infer="next-transaction-date"
>
</foxy-internal-date-control>
<foxy-internal-date-control layout="summary-item" infer="end-date">
<foxy-internal-date-control format="iso-long" layout="summary-item" infer="end-date">
</foxy-internal-date-control>
</foxy-internal-summary-control>
Expand Down

0 comments on commit 4e957d3

Please sign in to comment.