Skip to content

Commit

Permalink
Merge pull request #59 from shopware/ppi-1043/fixed-duplicate-payment…
Browse files Browse the repository at this point in the history
…-method-toggle

PPI-1043 - Fixed duplicate payment method toggle
  • Loading branch information
cyl3x authored Dec 16, 2024
2 parents f4f6e90 + cf84891 commit 2d0c707
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# 9.6.5
- PPI-1025 - Improves the performance of the installment banner in the Storefront
- PPI-1043 - Fixes an issue, where a payment method is toggled twice in the Administration

# 9.6.4
- PPI-930 - Fixes a issue, where with a selected sales channel the inherited configuration was not working correctly
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG_de-DE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# 9.6.5
- PPI-1025 - Verbessert die Performance des Ratenzahlungsbanners in der Storefront
- PPI-1043 - Behebt ein Problem, bei dem eine Zahlungsmethode doppelt umgeschalten wurde

# 9.6.4
- PPI-930 - Behebt ein Problem, bei dem bei einem ausgewähltem Verkaufskanal die vererbte Konfiguration nicht korrekt funktionierte
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,13 +142,17 @@ export default Shopware.Component.wrapComponentConfig({
},

methods: {
onChangePaymentMethodActive() {
onChangePaymentMethodActive(active: boolean) {
if (this.paymentMethod.active === active) {
return;
}

if (this.isApplePayAndActive) {
localStorage.removeItem('domain-association-hidden');
this.isAlertActive = true;
}

this.paymentMethod.active = !this.paymentMethod.active;
this.paymentMethod.active = active;

this.paymentMethodRepository.save(this.paymentMethod, Context.api)
.then(() => {
Expand Down

0 comments on commit 2d0c707

Please sign in to comment.