Skip to content

Commit

Permalink
Fixed ability to actually donate (#195)
Browse files Browse the repository at this point in the history
Fixed ability to actually donate
  • Loading branch information
ErikBjare authored Jul 3, 2019
2 parents 9795a61 + 428a037 commit 6e46349
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
12 changes: 6 additions & 6 deletions src/dashboard/components/DonationSummary.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,11 @@ div.pt-2
single-line,
autofocus)

div.text-xs-center.pt-2.pb-3
router-link(to="/checkout")
v-btn(v-if="!buttonError", large, outline, color='primary')
| Send your thanks! (${{ total.toFixed(2) }})
v-btn(v-else, disabled, large, outline, color='primary', v-on:click="donateAll()")
| {{ buttonError }}
div.text-xs-center.pt-2.pb-3(v-if="checkout")
v-btn(v-if="!buttonError", large, color='primary' @click="donateAll()")
| Send your thanks! (${{ total.toFixed(2) }})
v-btn(v-else disabled large outline color='primary')
| {{ buttonError }}
</template>

<script>
Expand All @@ -59,6 +58,7 @@ import { mapState, mapGetters } from 'vuex';
import { getInstallDate } from '../../lib/util.ts';
export default {
props: ['checkout'],
data: function() {
return {
editMode: false,
Expand Down
2 changes: 1 addition & 1 deletion src/dashboard/pages/CheckoutPage.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template lang="pug">
v-container
donation-summary(ref='donationSummary', @error="errfun('Donating failed')($event)")
donation-summary(ref='donationSummary', @error="errfun('Donating failed')($event)" checkout="true")
</template>

<script>
Expand Down
6 changes: 6 additions & 0 deletions src/dashboard/pages/DashboardPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,12 @@ div
v-layout(row)
v-flex(xs12)
donation-summary(ref='donationSummary', @error="errfun('Donating failed')($event)")

div.text-xs-center.pt-2.pb-3
router-link(to="/checkout")
v-btn(large color="primary")
| Review & donate

missing-addresses-card
</template>

Expand Down

0 comments on commit 6e46349

Please sign in to comment.