Skip to content
This repository has been archived by the owner on Nov 9, 2021. It is now read-only.

Commit

Permalink
Replaced click.native with click
Browse files Browse the repository at this point in the history
  • Loading branch information
rennokki committed May 11, 2021
1 parent c9bab51 commit 58d9e63
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions stubs/inertia/resources/js/BillingPortal/PlanSlide.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,28 +62,28 @@
<template v-else>
<jet-button
v-if="!currentPlan"
@click.native="subscribeToPlan(plan.id)"
@click="subscribeToPlan(plan.id)"
>
Subscribe
</jet-button>

<jet-secondary-button
v-else-if="plan.id !== currentPlan.id"
@click.native="swapPlan(plan.id)"
@click="swapPlan(plan.id)"
>
Subscribe
</jet-secondary-button>

<jet-secondary-button
v-if="currentPlan && currentPlan.id === plan.id && recurring"
@click.native="cancelSubscription"
@click="cancelSubscription"
>
Cancel
</jet-secondary-button>

<jet-button
v-if="currentPlan && currentPlan.id === plan.id && cancelled && onGracePeriod"
@click.native="resumeSubscription"
@click="resumeSubscription"
>
Resume
</jet-button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@

<jet-button
:data-secret="intent.client_secret"
@click.native="addPaymentMethod"
@click="addPaymentMethod"
>
Add Payment Method
</jet-button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<div class="py-12">
<div class="max-w-3xl mx-auto sm:px-6 lg:px-8">
<jet-button @click.native="$inertia.visit(route('billing-portal.payment-method.create'))">
<jet-button @click="$inertia.visit(route('billing-portal.payment-method.create'))">
Add New Payment Method
</jet-button>

Expand Down Expand Up @@ -62,14 +62,14 @@

<jet-secondary-button
v-else
@click.native="setAsDefault(method)"
@click="setAsDefault(method)"
>
Set as default
</jet-secondary-button>
</td>

<td class="px-6 py-4 whitespace-no-wrap text-center">
<jet-danger-button @click.native="deletePaymentMethod(method)">
<jet-danger-button @click="deletePaymentMethod(method)">
Delete
</jet-danger-button>
</td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
</h2>

<div class="mt-3 space-x-2">
<jet-secondary-button @click.native="$inertia.visit(route('billing-portal.invoice.index'))">
<jet-secondary-button @click="$inertia.visit(route('billing-portal.invoice.index'))">
Invoices
</jet-secondary-button>

<jet-secondary-button @click.native="$inertia.visit(route('billing-portal.payment-method.index'))">
<jet-secondary-button @click="$inertia.visit(route('billing-portal.payment-method.index'))">
Payment methods
</jet-secondary-button>

<jet-secondary-button @click.native="$inertia.visit(route('billing-portal.portal'))">
<jet-secondary-button @click="$inertia.visit(route('billing-portal.portal'))">
Stripe Billing Portal

<svg
Expand Down

0 comments on commit 58d9e63

Please sign in to comment.