mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 07:37:25 +01:00
why clicky click no click?
This commit is contained in:
@@ -126,7 +126,7 @@
|
|||||||
|
|
||||||
<!-- the word "total" -->
|
<!-- the word "total" -->
|
||||||
<div class="buy-gem-total">
|
<div class="buy-gem-total">
|
||||||
{{ $t('sendGiftTotal') }}
|
{{ $t('sendTotal') }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- the actual dollar amount -->
|
<!-- the actual dollar amount -->
|
||||||
|
|||||||
@@ -18,10 +18,8 @@
|
|||||||
<input
|
<input
|
||||||
v-model="quantity"
|
v-model="quantity"
|
||||||
class="form-control alignment"
|
class="form-control alignment"
|
||||||
:quantity="1"
|
|
||||||
min="1"
|
|
||||||
step="1"
|
step="1"
|
||||||
@input="$emit('update:quantity', $event.target.value)"
|
@input="$emit('update:quantity', $event.target.selectedAmountToBuy)"
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
|
|||||||
@@ -96,11 +96,10 @@
|
|||||||
</div>
|
</div>
|
||||||
<div v-if="showAmountToBuy(item)">
|
<div v-if="showAmountToBuy(item)">
|
||||||
<number-increment
|
<number-increment
|
||||||
:quantity="1"
|
@input="$emit('update:quantity', target.value.selectedAmountToBuy)"
|
||||||
@click="$emit('update:quantity', selectedAmountToBuy)"
|
|
||||||
/>
|
/>
|
||||||
<div :class="{'notEnough': notEnoughCurrency}">
|
<div :class="{'notEnough': notEnoughCurrency}">
|
||||||
<span class="total-text">Total:</span>
|
<span class="total-text">{{ $t('sendTotal') }}</span>
|
||||||
<span
|
<span
|
||||||
class="svg-icon inline icon-20 total"
|
class="svg-icon inline icon-20 total"
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
@@ -109,7 +108,7 @@
|
|||||||
<span
|
<span
|
||||||
class="total"
|
class="total"
|
||||||
:class="getPriceClass()"
|
:class="getPriceClass()"
|
||||||
>{{ item.value }}</span>
|
>{{ item.value * selectedAmount }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
@@ -488,6 +487,7 @@ export default {
|
|||||||
},
|
},
|
||||||
mixins: [buyMixin, currencyMixin, notifications, numberInvalid, spellsMixin],
|
mixins: [buyMixin, currencyMixin, notifications, numberInvalid, spellsMixin],
|
||||||
props: {
|
props: {
|
||||||
|
// eslint-disable-next-line vue/require-default-prop
|
||||||
item: {
|
item: {
|
||||||
type: Object,
|
type: Object,
|
||||||
},
|
},
|
||||||
@@ -519,6 +519,7 @@ export default {
|
|||||||
selectedAmountToBuy: 1,
|
selectedAmountToBuy: 1,
|
||||||
selectedAmount: 1,
|
selectedAmount: 1,
|
||||||
isPinned: false,
|
isPinned: false,
|
||||||
|
quantity: 1,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|||||||
@@ -129,7 +129,7 @@
|
|||||||
"sendGiftHeading": "Send Gift to <%= name %>",
|
"sendGiftHeading": "Send Gift to <%= name %>",
|
||||||
"sendGiftGemsBalance": "From <%= number %> Gems",
|
"sendGiftGemsBalance": "From <%= number %> Gems",
|
||||||
"sendGiftCost": "Total: $<%= cost %> USD",
|
"sendGiftCost": "Total: $<%= cost %> USD",
|
||||||
"sendGiftTotal": "Total:",
|
"sendTotal": "Total:",
|
||||||
"sendGiftFromBalance": "From Balance",
|
"sendGiftFromBalance": "From Balance",
|
||||||
"sendGiftPurchase": "Purchase",
|
"sendGiftPurchase": "Purchase",
|
||||||
"sendGiftLabel": "Would you like to send a gift message?",
|
"sendGiftLabel": "Would you like to send a gift message?",
|
||||||
|
|||||||
Reference in New Issue
Block a user