mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 14:17:22 +01:00
Show currency amount on purchase confirmation modals
This commit is contained in:
@@ -855,6 +855,8 @@ export default {
|
|||||||
const confirmed = await new Promise(resolve => {
|
const confirmed = await new Promise(resolve => {
|
||||||
this.$root.$emit('habitica:purchase-confirm', {
|
this.$root.$emit('habitica:purchase-confirm', {
|
||||||
message: this.$t('purchasePetItemConfirm', { itemText: this.item.text }),
|
message: this.$t('purchasePetItemConfirm', { itemText: this.item.text }),
|
||||||
|
currency: this.item.currency,
|
||||||
|
cost: this.item.value * this.selectedAmountToBuy,
|
||||||
resolve,
|
resolve,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -43,6 +43,8 @@ export default {
|
|||||||
return new Promise(resolve => {
|
return new Promise(resolve => {
|
||||||
this.$root.$emit('habitica:purchase-confirm', {
|
this.$root.$emit('habitica:purchase-confirm', {
|
||||||
message: this.$t(purchaseForKey, { cost }),
|
message: this.$t(purchaseForKey, { cost }),
|
||||||
|
currency,
|
||||||
|
cost,
|
||||||
resolve,
|
resolve,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user