Skip to content

Commit

Permalink
offer help with subscriptions (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
burden authored Nov 18, 2024
1 parent 3aba37a commit f146f8c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions components/payment-info/support.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@
Pay Now
</sys-form-button>

<sys-form-button
v-if="$auth.loggedIn"
color="danger"
@click.prevent="getSupport()"
>
Unsubscribe
</sys-form-button>

<sys-form-button
v-else
color="primary"
Expand Down Expand Up @@ -71,6 +79,14 @@
...mapGetters('payment', ['canGoBack']),
faChevronLeft: () => faChevronLeft
},
methods: {
getSupport () {
if (confirm('You will be redirected to a contact page. To get help with canceling your subscription, please fill out the form.\n\nThank you for your support.')) {
window.location = 'https://system76.com/contact/support'
}
}
}
}
</script>

0 comments on commit f146f8c

Please sign in to comment.