From 7e7a29153cb37f28393618b4b382f82bf856b5e4 Mon Sep 17 00:00:00 2001 From: Josh Torres Date: Sat, 30 Sep 2023 14:18:55 -0700 Subject: [PATCH] - upgrade media-manager - update withStripe livewire component to livewire 3 dispatch --- .../components/input/media-manager.blade.php | 69 ++++++++++--------- src/Livewire/WithStripe.php | 2 +- 2 files changed, 36 insertions(+), 35 deletions(-) diff --git a/resources/views/components/input/media-manager.blade.php b/resources/views/components/input/media-manager.blade.php index 9c978ea..2abf2cb 100644 --- a/resources/views/components/input/media-manager.blade.php +++ b/resources/views/components/input/media-manager.blade.php @@ -7,34 +7,13 @@ 'id' ]) -
+
@if (empty($file)) -
+
@endif
+ + + diff --git a/src/Livewire/WithStripe.php b/src/Livewire/WithStripe.php index db22aa1..1933ca7 100644 --- a/src/Livewire/WithStripe.php +++ b/src/Livewire/WithStripe.php @@ -30,7 +30,7 @@ public function updateStripePaymentMethod(string $event, string $message) $billable->updateDefaultPaymentMethod($this->stripeToken); // Let Livewire knows Stripe payment method updated. - $this->emitSelf('stripePaymentMethodUpdated', $billable); + $this->dispatch('stripePaymentMethodUpdated', $billable)->self(); // Let Alpinejs now Stripe payment method updated. $this->dispatch('stripe-payment-method-updated');