From e7b7e653ec7e07b35787b6402c39ae4183606848 Mon Sep 17 00:00:00 2001 From: Florent Letendre Date: Tue, 14 Jan 2025 09:33:51 -0500 Subject: [PATCH 1/2] fix: add resource load-once capability (#19859) CXSPA-8883 Option to load css and js files only once rather than deleted and re-adding at each payment/page changes. This option is toggled on OPF server server side by adding 'opf-load-once'='true' attribute to resource file. --- .../opf/base/root/services/opf-resource-loader.service.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/integration-libs/opf/base/root/services/opf-resource-loader.service.ts b/integration-libs/opf/base/root/services/opf-resource-loader.service.ts index 5bb3fb4e9d7..ca2d35f8f4d 100644 --- a/integration-libs/opf/base/root/services/opf-resource-loader.service.ts +++ b/integration-libs/opf/base/root/services/opf-resource-loader.service.ts @@ -87,7 +87,10 @@ export class OpfResourceLoaderService { keyValueList?.forEach((keyValue: OpfKeyValueMap) => { attributes[keyValue.key] = keyValue.value; }); - if (attributes?.[this.OPF_RESOURCE_LOAD_ONCE_ATTRIBUTE_KEY] === 'true') { + if ( + !attributes?.[this.OPF_RESOURCE_LOAD_ONCE_ATTRIBUTE_KEY] || + attributes[this.OPF_RESOURCE_LOAD_ONCE_ATTRIBUTE_KEY] !== 'true' + ) { attributes[this.OPF_RESOURCE_ATTRIBUTE_KEY] = 'true'; } delete attributes?.[this.OPF_RESOURCE_LOAD_ONCE_ATTRIBUTE_KEY]; From 22476ef1e4c5d1b99e006b944123dba4da96e9e8 Mon Sep 17 00:00:00 2001 From: petarmarkov9449 <166535589+petarmarkov9449@users.noreply.github.com> Date: Thu, 16 Jan 2025 09:28:33 +0100 Subject: [PATCH 2/2] fix: (CXSPA-9009) - Fix convey input field errors on repeat navigation (#19852) --- .../asm-create-customer-form.component.html | 9 +++++ .../csagent-login-form.component.html | 6 +++ .../customer-selection.component.html | 3 ++ .../cart-coupon/cart-coupon.component.html | 3 ++ ...port-to-new-saved-cart-form.component.html | 7 +++- .../saved-cart-form-dialog.component.html | 6 +++ ...eckout-billing-address-form.component.html | 15 ++++++++ .../checkout-login.component.html | 6 +++ .../checkout-payment-form.component.html | 24 ++++++++++++ ...omer-ticketing-close-dialog.component.html | 7 +++- ...mer-ticketing-reopen-dialog.component.html | 7 +++- ...mer-ticketing-create-dialog.component.html | 14 ++++++- .../order-guest-register-form.component.html | 6 +++ ...unt-summary-document-filter.component.html | 9 +++++ .../budget/form/budget-form.component.html | 9 +++++ .../form/cost-center-form.component.html | 6 +++ .../form/permission-form.component.html | 6 +++ .../unit/form/unit-form.component.html | 6 +++ .../form/unit-address-form.component.html | 15 ++++++++ .../form/user-group-form.component.html | 6 +++ .../user-change-password-form.component.html | 6 +++ .../user/form/user-form.component.html | 9 +++++ .../order-approval-detail-form.component.html | 3 ++ .../user-registration-form.component.html | 38 ++++++++++++++++++- .../login-form/login-form.component.html | 6 +++ .../otp-login-form.component.html | 14 ++++++- .../address-form/address-form.component.html | 15 ++++++++ .../forgot-password.component.html | 3 ++ .../register/register.component.html | 15 ++++++++ .../reset-password.component.html | 6 +++ .../my-account-v2-email.component.html | 9 +++++ .../update-email/update-email.component.html | 9 +++++ .../my-account-v2-password.component.html | 6 +++ .../update-password.component.html | 9 +++++ .../my-account-v2-profile.component.html | 9 +++++ .../update-profile.component.html | 9 +++++ .../claim-dialog/claim-dialog.component.html | 3 ++ .../product-reviews.component.html | 9 +++++ .../date-picker/date-picker.component.html | 3 ++ 39 files changed, 342 insertions(+), 9 deletions(-) diff --git a/feature-libs/asm/components/asm-create-customer-form/asm-create-customer-form.component.html b/feature-libs/asm/components/asm-create-customer-form/asm-create-customer-form.component.html index 80a3a9f3b21..0e7c14a6698 100644 --- a/feature-libs/asm/components/asm-create-customer-form/asm-create-customer-form.component.html +++ b/feature-libs/asm/components/asm-create-customer-form/asm-create-customer-form.component.html @@ -49,10 +49,13 @@ [attr.aria-label]=" 'register.confirmPassword.placeholder' | cxTranslate " + [attr.aria-describedby]="'passwordconfError'" cxPasswordVisibilitySwitch />