fix(modals): various tweks

This commit is contained in:
Sabe Jones
2024-06-28 22:03:45 -05:00
committed by Phillip Thelen
parent 193f783652
commit 7e8239fb28
4 changed files with 14 additions and 9 deletions

View File

@@ -715,6 +715,12 @@ export default {
if (this.item.notes instanceof Function) { if (this.item.notes instanceof Function) {
return this.item.notes(); return this.item.notes();
} }
if (this.item.items) {
if (this.item.items[0].notes instanceof Function) {
return this.item.items[0].notes();
}
return this.item.items[0].notes;
}
return this.item.notes; return this.item.notes;
}, },
gemsLeft () { gemsLeft () {

View File

@@ -28,6 +28,12 @@
:item="item" :item="item"
:abbreviated="true" :abbreviated="true"
/> />
<div
v-if="item.addlNotes"
class="mb-3"
>
{{ item.addlNotes }}
</div>
<quest-rewards :quest="item" /> <quest-rewards :quest="item" />
<div <div
v-if="!item.locked" v-if="!item.locked"
@@ -52,12 +58,6 @@
<div class="how-many-to-buy"> <div class="how-many-to-buy">
<strong>{{ $t('howManyToBuy') }}</strong> <strong>{{ $t('howManyToBuy') }}</strong>
</div> </div>
<div
v-if="item.addlNotes"
class="mb-3"
>
{{ item.addlNotes }}
</div>
<div> <div>
<number-increment <number-increment
@updateQuantity="selectedAmountToBuy = $event" @updateQuantity="selectedAmountToBuy = $event"
@@ -82,7 +82,7 @@
v-if="priceType === 'gems' v-if="priceType === 'gems'
&& !enoughCurrency(priceType, item.value * selectedAmountToBuy) && !enoughCurrency(priceType, item.value * selectedAmountToBuy)
&& !item.locked" && !item.locked"
class="btn btn-primary" class="btn btn-primary mb-3"
@click="purchaseGems()" @click="purchaseGems()"
> >
{{ $t('purchaseGems') }} {{ $t('purchaseGems') }}

View File

@@ -18,7 +18,6 @@
</div> </div>
<div <div
v-html="itemNotes" v-html="itemNotes"
class="mb-2"
></div> ></div>
<questInfo <questInfo
class="questInfo" class="questInfo"

View File

@@ -1,7 +1,7 @@
<template> <template>
<div> <div>
<div <div
class="row" class="row mt-3"
> >
<div <div
v-if="quest.collect" v-if="quest.collect"