Skip to content

Commit

Permalink
fix: rename refresh-totals -> refreshtotals for consistency and defin…
Browse files Browse the repository at this point in the history
…e missing emits
  • Loading branch information
emuvente committed Oct 3, 2024
1 parent 067e3a7 commit 113a6de
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
9 changes: 6 additions & 3 deletions src/components/Checkout/InContext/InContextCheckout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
@complete-transaction="completeTransaction"
class="checkout-button"
id="kiva-credit-payment-button"
@refreshtotals="$emit('refresh-totals')"
@refreshtotals="$emit('refreshtotals')"
@updating-totals="setUpdatingTotals"
@checkout-failure="handleCheckoutFailure"
/>
Expand All @@ -123,7 +123,7 @@
:managed-account-id="managedAccountId"
:promo-guest-checkout-enabled="promoGuestCheckoutEnabled"
:promo-name="promoName"
@refreshtotals="$emit('refresh-totals')"
@refreshtotals="$emit('refreshtotals')"
@updating-totals="setUpdatingTotals"
@checkout-failure="handleCheckoutFailure"
/>
Expand Down Expand Up @@ -186,7 +186,10 @@ export default {
'complete-transaction',
'checkout-failure',
'refreshtotals',
'updating-totals'
'updating-totals',
'jump-to-loans',
'credit-removed',
'transaction-complete',
],
props: {
isLoggedIn: {
Expand Down
4 changes: 2 additions & 2 deletions src/components/Checkout/TeamAttribution.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import KvSelect from '@kiva/kv-components/vue/KvSelect';
export default {
name: 'TeamAttribution',
emits: ['refresh-totals', 'updating-totals'],
emits: ['refreshtotals', 'updating-totals'],
props: {
teams: {
type: Array,
Expand Down Expand Up @@ -106,7 +106,7 @@ export default {
: 'Team Attribution Removal Success',
numeral(this.selectedId).value()
);
this.$emit('refresh-totals', 'team-update');
this.$emit('refreshtotals', 'team-update');
this.cachedId = this.selectedId;
}
}).catch(error => {
Expand Down
2 changes: 1 addition & 1 deletion src/components/LoanCards/GridLoanCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export default {
LoanTag
},
inject: ['apollo'],
emit: ['track-interaction', 'toggle-favorite'],
emits: ['track-interaction', 'toggle-favorite', 'add-to-basket'],
props: {
amountLeft: {
type: Number,
Expand Down
2 changes: 1 addition & 1 deletion src/components/LoanCards/ListLoanCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ export default {
BorrowerInfoHeader,
BorrowerInfoBody,
},
emits: ['track-interaction', 'toggle-favorite'],
emits: ['track-interaction', 'toggle-favorite', 'add-to-basket'],
props: {
isVisitor: {
type: Boolean,
Expand Down
2 changes: 1 addition & 1 deletion src/components/Thanks/Badges/FirstScreen.vue
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ export default {
KvButton,
KvMaterialIcon,
},
emits: ['show-new-bg'],
emits: ['show-new-bg', 'show-discover-badges'],
props: {
receipt: {
type: Object,
Expand Down

0 comments on commit 113a6de

Please sign in to comment.