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) {
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;
},
gemsLeft () {

View File

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

View File

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

View File

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